MCP
Serves ZShot to an agent as an MCP server, over one of two transports:
| Transport | Run |
|---|---|
| HTTP | --server with --server-enable-mcp, which serves the endpoint at / |
| stdio | --mcp-local-server, which the agent launches as a subprocess and talks to over stdin and stdout |
Example
Add a server running on localhost:3000 to Claude Code:
claude mcp add --transport http zshot http://localhost:3000/mcpAdd a local server to Claude Code:
claude mcp add --transport stdio zshot -- zshot --mcp-local-serverTools
| Tool | Description |
|---|---|
render | Renders a URL. Additional assets, such as with_, follow the output as resource links. |
session_, session_, session_ | Drive a navigator session one action per call. Returns text frames with inline screenshots plus the session ID and seq. |
list_ | Lists valid device preset IDs. |
fetch_ | Fetches raw bytes for a zshot:/ resource link. A file over 768 KiB comes back as a file path from --mcp-local-server and as an / URL from an HTTP server. |
A local server writes resource files to --mcp-local-server-resource-directory and names each file’s path in the render’s summary, additional assets included. Each resource is written as a standalone file that the client can read or copy directly.