cdt-smart-snapshot
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CDT_MAX_DEPTH | No | Default maxDepth. | 8 |
| CDT_BROWSER_URL | No | HTTP CDP URL for puppeteer.connect. | http://127.0.0.1:9222 |
| CDT_WS_ENDPOINT | No | Prefer WebSocket CDP endpoint when set. (default: unset) | |
| CDT_SNAPSHOT_DIR | No | Screenshot output directory. | $TMPDIR/cdt-snapshots |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| smart_snapshotA | Returns a token-efficient semantic snapshot of the current page: only visible, interactive and meaningful nodes, with depth limiting and deduplication. Use this instead of take_snapshot to save context. |
| snapshot_diffA | Returns only the changes between the current page state and the previous smart_snapshot call. Added/removed/changed nodes with a few lines of context. Use this on every step after the first to consume minimal tokens. |
| screenshot_to_diskA | Takes a screenshot, saves it to disk, and returns the file path. Saves ~3000-5000 tokens per screenshot compared to returning base64. Read the file with read_file if you need to inspect it. |
| page_searchA | Search the most recent smart_snapshot tree for a keyword. Returns matching uids with role, name, and path. Call smart_snapshot or snapshot_diff first. |
| get_nodeA | Return role, path, DOM geometry, and CSS selector for one snapshot uid. Requires a prior smart_snapshot or snapshot_diff. |
| element_to_selectorA | Return a unique CSS selector for a snapshot uid (for chrome-devtools-mcp click/fill). Requires smart_snapshot or snapshot_diff first. |
| page_statusA | Report current page URL, title, readyState, loading flag, and recent console errors, page exceptions, and failed network requests. |
| snapshot_indexA | List uids from the most recent snapshot (role, name, path). Useful before page_search or get_node. Requires smart_snapshot or snapshot_diff first. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sinnhirl/cdt-smart-snapshot'
If you have feedback or need assistance with the MCP directory API, please join our Discord server