Skip to main content
Glama
sinnhirl

cdt-smart-snapshot

by sinnhirl

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CDT_MAX_DEPTHNoDefault maxDepth.8
CDT_BROWSER_URLNoHTTP CDP URL for puppeteer.connect.http://127.0.0.1:9222
CDT_WS_ENDPOINTNoPrefer WebSocket CDP endpoint when set. (default: unset)
CDT_SNAPSHOT_DIRNoScreenshot output directory.$TMPDIR/cdt-snapshots

Capabilities

Features and capabilities supported by this server

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
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

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

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