Skip to main content
Glama

peek

Read-only

Inspect the current browser session by returning its page URL, title, and accessibility snapshot—without model calls or actions—optionally filtered by selector or interactive elements.

Instructions

Return the session page's URL, title and an accessibility snapshot (no model, no actions).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "peek"
  }
}

Input Schema

NameRequiredDescriptionDefault
cwdNoProject directory (absolute) the command runs in; sitelooper.config.json is found from here. Default: the server's working directory.
sessionNoBrowser session name (default "default"). Each session is its own browser and daemon.
selectorNoLimit the snapshot to this CSS selector (--selector).
interactiveNoOnly interactive elements (--interactive).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

readOnlyHint=true already declares the safety profile, and the description adds genuinely new information that no model is invoked and no actions are performed, which matters for cost and side-effect expectations. It says nothing about snapshot size, pagination, or how a missing/closed session is handled, so the added context is useful but partial.

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?

A single front-loaded sentence with zero filler: the returned fields come first, then the clarifying constraint. Nothing could be removed without losing information.

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?

For a read-only, zero-required-parameter inspection tool with full schema coverage and no output schema, the definition covers what is returned and the key non-behavior (no model, no actions). Only minor gaps remain, such as snapshot format or expected size on large pages.

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?

Schema description coverage is 100%, so all four parameters (cwd, session, selector, interactive) are already fully documented in the schema. The description adds no additional meaning about how selector or interactive affect the returned snapshot, so the baseline of 3 applies.

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

Purpose4/5

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

States a specific verb ("Return") and enumerates exactly what comes back: the session page's URL, title, and an accessibility snapshot. The parenthetical "(no model, no actions)" sharpens what kind of retrieval this is, separating it from model-driven or action-performing siblings without naming one.

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

Usage Guidelines3/5

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

Usage is only implied: the "no model, no actions" clause hints that this is the plain inspection path rather than a model-assisted or acting tool. There is no explicit statement of when to pick this over screenshot, check, or assert, and no prerequisites or exclusions are given.

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