Trailshot

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

  1. Install Trailshot (4 MB, no administrator password) and keep it open in the tray.
  2. 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.
  3. 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

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.

capture parameters
ParameterWhat it does
monitorMonitor index from list_monitors.
regionx, y, width, height in virtual-desktop pixels; can span monitors.
windowWindow id from list_windows.
name, folderSave 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.
saveSave with a date-time name.
annotationsMarks to draw, as in annotate.
gridA numbered coordinate grid on the agent's copy only (true = every 100 px, or a spacing).
copyAlso 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.

annotation fields
FieldWhat it does
typearrow, rect, highlight, line, text or blur (pixelates names, e-mails, tokens and other personal data).
elementThe name of a button, field or link in the captured window (from find_elements): the mark lands exactly on it.
from, toStart and end of arrows and lines.
x, y, width, heightArea of boxes, highlights and blur; position of text.
text, sizeText up to 200 characters, and its size (default 24).
colorred (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.

record parameters
ParameterWhat it does
monitor, region, windowWhat to record, as in capture.
formatmp4 (default) or gif.
secondsLength, up to the maximum you set (default 10).
blurAreas 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:

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:

  1. Plan the steps and pick one folder for the set.
  2. For each step, get the screen into the right state and capture the window with a numbered name (01-open-settings, 02-fill-form…).
  3. Look at every image before moving on: the right screen, nothing covering it, nothing cut off. If not, capture again with the same name.
  4. 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.
  5. Review the set against the request and, if it helps, write a README.md in 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.