Skip to main content
Glama

charlotte_observe

Observe the current page state without performing any action. Use detail levels and compact tree views to control verbosity from landmarks to full content.

Instructions

Get current page state without performing any action. Use detail levels to control verbosity: "minimal" for landmarks, headings, and interactive element counts by landmark (use charlotte_find to get specific elements with actionable IDs, or observe({ detail: "summary" }) to see all elements), "summary" (default) for content summaries and full element list, "full" for all text content. Use view: "tree" for a compact structural outline (cheapest orientation tool), or view: "tree-labeled" to include labels on interactive elements (still much cheaper than minimal JSON, and shows which button/link/input is which).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
viewNo"default" (structured JSON), "tree" (compact structural outline — element types only, cheapest), or "tree-labeled" (structural outline with interactive element labels — shows which button/link/input is which, still ~70% cheaper than minimal JSON)
detailNo"summary" (default), "full" (includes all text content), "minimal" (landmarks + interactive only)
selectorNoCSS selector to scope observation to a subtree
output_fileNoWrite observation data to this file path instead of returning inline. Relative paths resolve against output_dir (see charlotte_configure). Returns only a confirmation with the file path and size.
include_stylesNoInclude computed styles for visible elements (default: false)
Behavior4/5

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

With no annotations, the description carries the full burden of behavioral disclosure. It states 'without performing any action' (non-mutating), explains cost trade-offs ('cheapest', 'still much cheaper than minimal JSON'), and reveals output behavior for output_file ('Returns only a confirmation with the file path and size'). This provides meaningful context beyond the schema, though it omits potential error conditions or page-load requirements.

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

Conciseness4/5

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

The description is dense but well-structured: it leads with the main purpose, then explains optional parameters in a logical flow. Each sentence adds operational value without filler. Slightly longer than ideal, but the complexity of 5 parameters and absence of annotations justify the length.

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 the tool's complexity (5 params, no output schema, no annotations), the description covers the essential aspects: purpose, parameter behaviors, alternatives, and cost considerations. It lacks explicit return format details for the default view, but for a read-only observation tool, the provided information is sufficient for an agent to select and invoke it correctly.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds significant value by explaining detail level semantics (minimal/summary/full), view trade-offs (tree vs tree-labeled with cost estimates), and output_file resolution ('relative paths resolve against output_dir'). This goes beyond the bare enum names and provides actionable guidance for parameter selection.

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 the tool's function: 'Get current page state without performing any action.' The verb 'get' and resource 'page state' precisely convey the read-only nature, distinguishing it from action-oriented siblings like charlotte_click and charlotte_type. Mentioning charlotte_find and observe variants further differentiates it from element-finding tools.

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

Usage Guidelines5/5

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

Explicitly directs when to use alternatives: 'use charlotte_find to get specific elements with actionable IDs' and 'or observe({ detail: "summary" }) to see all elements.' Recommends view: 'tree' as the 'cheapest orientation tool,' giving clear context on when to choose this tool over others.

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/TickTockBent/charlotte'

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