MCP server reference
For Trailshot 0.2.25 and later. Last updated: December 5, 2026
Trailshot is a screenshot and screen recording app for Windows 10 and 11 with a built-in MCP server. Through it, AI agents like Claude Code, Cursor, Codex, VS Code and Claude Desktop take screenshots of any app on your screen, with correct colors even with HDR on, mark them up, record MP4 or GIF and, only if you allow it, use your apps. This page explains how to connect an agent and lists every tool it gets.
Connect your agent
- Install Trailshot (4 MB, no administrator password) and keep it open in the tray.
- In Settings, AI agents, turn on Allow AI agents and click your app's button (Claude Code, Codex, Cursor or VS Code). It copies the setup with your access token and the path to Trailshot already filled in.
- Paste it where your agent reads MCP servers, as below, and start a new chat.
Claude Code
Paste it in the terminal (PowerShell):
claude mcp add --scope user trailshot --env TRAILSHOT_TOKEN=YOUR_TOKEN -- "$env:LOCALAPPDATA\Programs\ Trailshot\ trailshot.exe" --mcp
Or as a plugin, which also adds a skill for documenting a flow. In Claude Code, run these lines; it asks for your access token:
/plugin marketplace add lucasndas/trailshot-releases /plugin install trailshot@trailshot
Codex
Paste it in the terminal (PowerShell):
codex mcp add trailshot --env TRAILSHOT_TOKEN=YOUR_TOKEN -- "$env:LOCALAPPDATA\Programs\ Trailshot\ trailshot.exe" --mcp
Or as a plugin, which also adds the same skill. Save the access token once as a user environment variable, add the plugin and restart Codex:
setx TRAILSHOT_TOKEN "YOUR_TOKEN" codex plugin marketplace add lucasndas/trailshot-releases codex plugin add trailshot@trailshot
Gemini CLI
Install the extension; it asks for your access token:
gemini extensions install https://github.com/lucasndas/trailshot-releases
Cursor and Claude Desktop
In Cursor, ~/.cursor/mcp.json (Settings, MCP); in Claude Desktop, Settings, Developer, Edit Config:
{
"mcpServers": {
"trailshot": {
"command": "C:\\Users\\YOUR_USER\\AppData\\Local\\Programs\\Trailshot\\trailshot.exe",
"args": ["--mcp"],
"env": { "TRAILSHOT_TOKEN": "YOUR_TOKEN" }
}
}
}
VS Code
In mcp.json (VS Code uses servers instead of mcpServers):
{
"servers": {
"trailshot": {
"type": "stdio",
"command": "C:\\Users\\YOUR_USER\\AppData\\Local\\Programs\\Trailshot\\trailshot.exe",
"args": ["--mcp"],
"env": { "TRAILSHOT_TOKEN": "YOUR_TOKEN" }
}
}
}
Other apps that support MCP over stdio work the same way: the command is trailshot.exe --mcp with the TRAILSHOT_TOKEN environment variable. Writing it by hand, replace YOUR_TOKEN with your access token (Settings, AI agents, Copy next to Access token) and YOUR_USER with your Windows user folder.
How it works and what you control
- Local only. Your agent starts
trailshot.exe --mcpand talks to it over stdio. That process passes each request to the Trailshot app over a local named pipe, with your token. No network port is opened, and only programs running as your Windows user on the same PC can connect. - Off by default. Nothing answers until you turn on Allow AI agents. Turning it off, or making a new token, cuts every agent off.
- Ask first, or just show it. Each use can wait for your OK, or only show an indicator at the top of the screen with the agent's name and its last step. The indicator never shows up in screenshots.
- Your limits. Whether the agent may record and for how long, the size of the images it gets, and whether it may use your clipboard. The agent reads them with
get_settingsand can ask for more withrequest_settings_change; you see the reason and decide. - Stops at once. Ctrl+Shift+F12, a click on the tray icon, or Stop actions on the indicator.
Read more in the privacy policy and on the security page.
Tools
Coordinates are pixels of the virtual desktop for targets, and pixels of the image the agent received for annotations; every image result says how its pixels map to the screen.
capture
Takes a screenshot of a monitor, a region or a window (even when covered by other windows), with correct colors even with HDR on. Returns a PNG, scaled down to the size you allow. With no target, it captures the primary monitor.
| Parameter | What it does |
|---|---|
monitor | Monitor index from list_monitors. |
region | x, y, width, height in virtual-desktop pixels; can span monitors. |
window | Window id from list_windows. |
name, folder | Save the full-size image under this name in a subfolder of your Trailshot folder (e.g. 01-login in flow-signup). Saving again with the same name replaces it. |
save | Save with a date-time name. |
annotations | Marks to draw, as in annotate. |
grid | A numbered coordinate grid on the agent's copy only (true = every 100 px, or a spacing). |
copy | Also copy the full-size image to the clipboard, if you allow it. |
annotate
Draws on a screenshot saved earlier with capture (same name and folder). It always starts from the clean image, so annotating again replaces the marks and the agent can fix one that landed in the wrong place.
| Field | What it does |
|---|---|
type | arrow, rect, highlight, line, text or blur (pixelates names, e-mails, tokens and other personal data). |
element | The name of a button, field or link in the captured window (from find_elements): the mark lands exactly on it. |
from, to | Start and end of arrows and lines. |
x, y, width, height | Area of boxes, highlights and blur; position of text. |
text, size | Text up to 200 characters, and its size (default 24). |
color | red (default), orange, yellow, green, blue, purple, black or white. |
record
Records a monitor, a region or a window to MP4 or GIF, waits until it ends and returns the file path. You see the recording bar and can stop it early.
| Parameter | What it does |
|---|---|
monitor, region, window | What to record, as in capture. |
format | mp4 (default) or gif. |
seconds | Length, up to the maximum you set (default 10). |
blur | Areas to pixelate: by element name when recording a window (it follows the element as the page changes), or a fixed area. |
find_elements
Lists the buttons, fields, links, menu items, tabs and list items of a window through Windows UI Automation (also inside Chrome and Electron apps), with their position in a capture of that window and on screen. Parameters: window (required), text to filter by name, max (default 80).
list_monitors, list_windows
The monitors (index, name, position, size, primary, HDR on or off) and the visible windows (id, title, process, position, size).
get_settings, request_settings_change
get_settings returns how you set Trailshot up for agents: asked or shown on each use, whether recording is allowed and for how long, image size, video and GIF settings, clipboard and actions. request_settings_change asks you to change the recording limit, image size, frame rate, codec, quality, sound or GIF settings, with a reason you see. Depending on your choice it is refused, asked or applied; security settings can't be changed by agents.
Using apps (desktop_* tools)
Off until you allow it under Settings, Agent actions. Then the agent also gets about 55 tools from agent-desktop (open source, Vercel Labs), included with Trailshot. They work through Windows accessibility, without moving your mouse:
- Read a window:
desktop_snapshot(a tree of the app with@refids),desktop_find,desktop_get,desktop_is. - Act on an element:
desktop_click,desktop_type,desktop_set_value,desktop_select,desktop_toggle,desktop_expand,desktop_scroll_toand more. - Keyboard and mouse:
desktop_press,desktop_mouse_click,desktop_drag,desktop_mouse_wheel. - Apps and windows:
desktop_launch,desktop_close_app,desktop_focus_window,desktop_maximize,desktop_resize_window. - Also: clipboard, notifications, waiting for an element, and
desktop_skills_getwith the full workflow.
You can be asked before each action, and the agent is never allowed to type into password fields.
Documenting a flow
Ask “document how to sign up in the app, with a screenshot of each step”. Trailshot tells the agent how to do it well:
- Plan the steps and pick one folder for the set.
- For each step, get the screen into the right state and capture the window with a numbered name (
01-open-settings,02-fill-form…). - Look at every image before moving on: the right screen, nothing covering it, nothing cut off. If not, capture again with the same name.
- Mark what the reader should look at or click (an arrow or box on the element, a short label like “2. Click Save”) and blur personal data.
- Review the set against the request and, if it helps, write a
README.mdin the folder with the images in order.
Questions
Does it only see web pages?
No. Trailshot captures whatever is on your Windows screen: desktop apps, games, several monitors, and windows covered by others.
Do my screenshots go to Trailshot's servers?
No. Trailshot has no servers, account or telemetry. Images go only to the agent you connected; what happens next depends on that agent and its provider.
Does it work from WSL, a container or another machine?
No. It only answers programs running as your Windows user on the same PC.
The agent has no Trailshot tools?
Start a new chat: agents read their MCP servers when a chat starts. Check that Trailshot is open (its icon by the clock) and that Allow AI agents is on. In Claude Code, claude mcp list shows whether it's connected.
Something else? Open an issue on GitHub or write to hello@trailshot.app.