Skip to main content
Glama
t3ratech

T3rnel Browser — Session Bridge

Official
by t3ratech

session_snapshot

Idempotent

Capture a page's interactive elements as structured references for browser actions. Use it to decide what to click, fill, select, or type without reading full page text.

Instructions

Capture a semantic map of a page for deciding what to act on. Returns {url, title, elements}, where each element is {ref, tag, text} — ref being an @eN handle that session_click, session_fill, session_type, session_select and session_press all accept in place of a CSS selector. Prefer this over session_read_page when the goal is to interact rather than to read: it lists only elements a user could actually operate. Skips zero-size and hidden elements, caps each label at 120 characters, and stops at 200 elements.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tabIdNoTab to snapshot; uses the active tab when omitted

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.2.0
    • addedInput schema / properties / tabId / description
      Added value: +"Tab to snapshot; uses the active tab when omitted"
  2. First observedv1.1.1

TDQS

A4.7/5.0
Behavior5/5

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

Even with annotations present, the description adds meaningful behavioral detail: it skips zero-size and hidden elements, caps labels at 120 characters, stops at 200 elements, and explains the ref handle format. This goes beyond the idempotent and non-destructive hints already supplied.

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?

Three sentences, no filler. The first sentence states purpose and return shape, the second explains ref semantics and sibling-tool usage, and the third lists limits. Every sentence earns its place.

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

Completeness5/5

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

With one optional parameter and no output schema, the description fully covers the output structure, element shape, ref semantics, sibling relationships, and truncation behavior. Nothing needed for correct invocation is missing.

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%: the only parameter, tabId, is already documented as 'Tab to snapshot; uses the active tab when omitted.' The description adds no additional parameter semantics, so the baseline of 3 is appropriate.

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 states a specific verb and resource: 'Capture a semantic map of a page for deciding what to act on.' It also distinguishes itself from session_read_page by framing this as the interactive-element snapshot versus a read-oriented page snapshot. The title 'Snapshot interactive elements' reinforces the purpose.

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?

It explicitly gives the when-to-use rule: 'Prefer this over session_read_page when the goal is to interact rather than to read.' It also explains that the returned @eN refs are accepted by session_click, session_fill, session_type, session_select, and session_press, making the workflow clear.

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