screenshot-routing

screenshot-routing is a skill for Claude Code, Codex from dpc00/sublime-mcp. It costs 46 tokens per session (694 once invoked), scanned A, original, MIT.

A set of tools for taking screenshots and inspecting the Sublime Text window that hosts the MCP server. It can examine dialogs, menus, native windows, open files, selections, and window errors.

In plain words
What is it for?
Use it to capture the editor or a popup, read native-window messages, inspect file state, and investigate “no window” errors.
Why use it?
It helps diagnose problems that are hard to understand from tool output alone, such as a hidden dialog or a window that is not responding. It is limited to that Sublime Text instance.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to capture the editor or a popup, read native-window messages, inspect file state, and investigate “no window” errors.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dpc00/sublime-mcp/screenshot-routing
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dpc00/sublime-mcp --skill screenshot-routing
Clone the repo
git clone --depth 1 https://github.com/dpc00/sublime-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for screenshot-routing

README.md
[![agentmods](https://agentmods.dev/badge/skills/dpc00/sublime-mcp/screenshot-routing/github.svg)](https://agentmods.dev/skills/dpc00/sublime-mcp/screenshot-routing)
Your own site
<a href="https://agentmods.dev/skills/dpc00/sublime-mcp/screenshot-routing"><img src="https://agentmods.dev/badge/skills/dpc00/sublime-mcp/screenshot-routing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for screenshot-routing

Your own site · 80×15
<a href="https://agentmods.dev/skills/dpc00/sublime-mcp/screenshot-routing"><img src="https://agentmods.dev/badge/skills/dpc00/sublime-mcp/screenshot-routing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 694 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00694
Opus 5.5 $0.00018 $0.00278
Sonnet 5.5 $0.00009 $0.00139
Haiku 4.5 $0.00005 $0.00069

Measured 7d ago against content hash fcd839f81e72, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

screenshot-routing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/screenshot-routing/SKILL.md · 55 lines

How it starts

The opening of the file, as written. The whole thing — 55 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Screenshots, prompts and window state (sublime-mcp tools)

Scope: the Sublime that hosts this MCP server, reached through sublime-mcp's own tools. Capturing any other process is not sublime-mcp's job and is not covered here.

Which call to use

what you want call
the editor window, or part of it ui_screenshot
a dialog, menu or popup ui_screenshot with kind (dialog, menu)
the truth about a native window (title, buttons, message text) list_native_windows
text state — sheets, selection, file contents, syntax get_sheets, get_selection, get_active_file

ui_screenshot:

  • select with window_title (substring), hwnd, or kind;
  • always pass max_width (900 reads a popup fine) and region when only part matters;
  • inline=false when you only need the file rather than the image;
  • it does not wait on a stuck UI thread: the window is not answering means the window failed a WM_NULL check and was not asked to render — wait for Sublime to be idle and retry;
  • a fallback: "screen" in the result means PrintWindow missed its 2.5 s deadline and the picture was copied off the desktop, so anything covering the window is in it.

A prompt on screen means the work is not done

A picker or dialog left up means the package is waiting for an answer; treat the step as unfinished.

  • ST4 input-handler pickers are invisible to window.views(), active_view(), the UIA tree and list_native_windows — only a screenshot shows them.
  • Native modals do appear in list_native_windows, with their text and buttons, and it works while the main thread is blocked.
  • Answer a modal with dismiss_native_window {"hwnd":…, "action":"button", "button":"Yes"}. It needs no focus and works while Sublime is blocked; an AX press() on the same button silently does nothing.

Empty window list = wrong process, not a broken tool

{"error": "no window ...", "windows": []} means the client is talking to a windowless Sublime process, typically a leftover from before a restart.

Read the full file on GitHub · 55 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 55 lines · 46 tokens per session scan A fcd839f81e72

Subscribe to this mod's changes

screenshot-routing is a skill published in the GitHub repository dpc00/sublime-mcp (4 stars, last pushed 8d ago), licensed MIT. It adds 46 tokens to every session and 694 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-09.

Related

screenshot-routing compared with skills from other repositories

screenshot-routing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
screenshot-routingdpc00/sublime-mcpSkill48d agoMITA46Claude Code, Codex
report-issue-localcyanheads/obsidian-mcp-serverSkill7065d agoApache-2.0A44Claude Code
opik-diagnosecomet-ml/opik-mcpSkill2262d agoApache-2.0A187Claude Code
opik-explaincomet-ml/opik-mcpSkill2262d agoApache-2.0A113Claude Code
lsp-inspectblackwell-systems/agent-lspSkill180todayMITA126Claude Code
lsp-refactorblackwell-systems/agent-lspSkill180todayMITA57Claude Code
lsp-safe-editblackwell-systems/agent-lspSkill180todayMITA59Claude Code