Skip to main content
Glama
InDate
by InDate

dom

Locate elements by CSS selector, retrieve detailed properties, or capture a full DOM snapshot using Chrome DevTools Protocol.

Instructions

Inspect and query the DOM. Actions: querySelector (find element by CSS selector and get basic info), getProperties (get detailed properties of an element), snapshot (get full DOM structure snapshot)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionYesDOM action: querySelector (find element by selector), getProperties (get detailed element properties), snapshot (get full DOM snapshot)
maxDepthNoMaximum depth for DOM snapshot (default: 5, for snapshot action)
selectorNoCSS selector (required for querySelector and getProperties actions). Supports extended selectors: :has-text("text") for partial match, :text("text") for exact match. Example: button:has-text("Submit")
connectionReasonYesConnection reference (use the reference from launchChrome output, e.g., "unnamed-connection-default" or your renamed tab)
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description describes the three actions and their basic outcomes. It does not mention side effects, permissions, or performance implications (e.g., snapshot depth). The schema covers parameter details, leaving some behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise (two sentences) and well-structured, with actions listed in parentheses and clearly separated. Every word adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no output schema, the description gives reasonable expectations for each action's result ('basic info', 'detailed properties', 'full DOM snapshot'). Combined with the schema's param descriptions, it covers the essential usage context.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema description coverage is 100%, so baseline is 3. The description adds brief context for each action but does not significantly enhance understanding beyond what the schema already provides for parameters like selector syntax.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states 'Inspect and query the DOM' with three specific actions (querySelector, getProperties, snapshot), each briefly explained. This distinguishes the tool from sibling tools like 'inspect' or 'console' by explicitly listing its capabilities.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use this tool versus alternatives. It only describes what it does, without mentioning when not to use it or comparing to sibling tools like 'inspect' or 'content'.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/InDate/cdp-tools-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server