Skip to main content
Glama

navigate_session

Navigate a browser session: load URLs, go back/forward, reload, or clear site data, then return the resulting page URL/title and chosen observation.

Instructions

Navigate a session: goto a URL (with optional wait_for selector / wait_for_network substring armed BEFORE the load), back, forward, reload (hard=true bypasses the HTTP cache), or clear_site_data (unregister service workers + clear CacheStorage for the origin, then reload — fresh-deploy mode; cookies are never touched; include_storage=true also clears localStorage/IndexedDB). Every navigation reports served_by_service_worker so a stale, SW-cached document is obvious. Returns the new URL/title and the chosen observation.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session_id": "<session_id>",
      "action": "<action>"
    },
    "name": "navigate_session"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoURL to load (required for goto)
hardNoreload: bypass the HTTP cache (default: false)
actionYesNavigation action
observeNoWhat to return about the resulting page. 'screenshot' (default): full-page image. 'none': structured result only, no image — cheapest, use through setup steps of a flow. 'map': semantic page map (get_page_map — token-light, best for 'what can I do next?'). 'checks': run_checks_on_session output (a11y/seo/perf/etc.).screenshot
timeoutNoms for wait_for / wait_for_network (defaults 10000 / 30000)
wait_forNogoto: CSS selector to wait for (visible) after the load
session_idYesSession ID
wait_untilNoNavigation wait strategy for this call (default: server setting, networkidle)
include_storageNoclear_site_data: also clear localStorage/sessionStorage/IndexedDB (default: false; cookies are never cleared)
wait_for_networkNogoto: plain URL substring of a response to wait for — armed before navigation so it can't be missed

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv0.12.0
    • changedInput schema / properties / action / description
      Previous value: -"History action to perform"New value: +"Navigation action"
    • changedInput schema / properties / action / enum
      Previous value: -[
      -  "back",
      -  "forward",
      -  "reload"
      -]New value: +[
      +  "goto",
      +  "back",
      +  "forward",
      +  "reload",
      +  "clear_site_data"
      +]
    • addedInput schema / properties / hard
      Added value: +{
      +  "description": "reload: bypass the HTTP cache (default: false)",
      +  "type": [
      +    "boolean",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / include_storage
      Added value: +{
      +  "description": "clear_site_data: also clear localStorage/sessionStorage/IndexedDB (default: false; cookies are never cleared)",
      +  "type": [
      +    "boolean",
      +    "string"
      +  ]
      +}
    • addedInput schema / properties / timeout
      Added value: +{
      +  "description": "ms for wait_for / wait_for_network (defaults 10000 / 30000)",
      +  "type": "integer"
      +}
    • addedInput schema / properties / url
      Added value: +{
      +  "description": "URL to load (required for goto)",
      +  "type": "string"
      +}
    • addedInput schema / properties / wait_for
      Added value: +{
      +  "description": "goto: CSS selector to wait for (visible) after the load",
      +  "type": "string"
      +}
    • addedInput schema / properties / wait_for_network
      Added value: +{
      +  "description": "goto: plain URL substring of a response to wait for — armed before navigation so it can't be missed",
      +  "type": "string"
      +}
    • addedInput schema / properties / wait_until
      Added value: +{
      +  "description": "Navigation wait strategy for this call (default: server setting, networkidle)",
      +  "enum": [
      +    "load",
      +    "domcontentloaded",
      +    "networkidle"
      +  ],
      +  "type": "string"
      +}
  2. Changed1 schema field changedv0.10.2
    • addedInput schema / properties / observe
      Added value: +{
      +  "default": "screenshot",
      +  "description": "What to return about the resulting page. 'screenshot' (default): full-page image. 'none': structured result only, no image — cheapest, use through setup steps of a flow. 'map': semantic page map (get_page_map — token-light, best for 'what can I do next?'). 'checks': run_checks_on_session output (a11y/seo/perf/etc.).",
      +  "enum": [
      +    "screenshot",
      +    "none",
      +    "map",
      +    "checks"
      +  ],
      +  "type": "string"
      +}
  3. First observedv0.1.0

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does so unusually well: it discloses the wait_for/wait_for_network arming order, that hard=true bypasses the HTTP cache, precisely what clear_site_data destroys (service workers + CacheStorage) versus what it never touches (cookies), that include_storage extends destruction to localStorage/IndexedDB, and that every navigation reports served_by_service_worker to expose stale SW-cached documents.

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 definition is dense but front-loaded: the action list comes first, destructive/per-mode caveats next, and return values last, with no filler sentences. It packs many clauses into long parenthetical asides, which slightly hurts scannability but every clause carries information an agent needs.

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 10-parameter, mutation-capable browser tool with no annotations and no output schema, the description covers action set, wait semantics, cache/SW/storage side effects, and return values (new URL/title plus the chosen observation). What is missing is failure behavior — timeouts, navigation errors, and what happens when wait_for never matches.

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 coverage is 100%, so all ten parameters (including enum values and defaults) are already documented in structured fields. The description restates several of these — wait_for/wait_for_network arming, hard/cache bypass, include_storage contents — adding only the 'fresh-deploy mode' rationale and the SW-reporting consequence, which is marginal over the schema's own wording. Baseline 3 applies when the schema does the heavy lifting.

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 opens with a specific verb+resource ('Navigate a session') and enumerates all five supported actions (goto, back, forward, reload, clear_site_data), so the agent knows exactly what surface the tool covers. It also distinguishes itself from siblings implicitly by naming the delegated outputs (get_page_map, run_checks_on_session) inside the action semantics.

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?

There is contextual guidance embedded in the action/param semantics — clear_site_data is framed as 'fresh-deploy mode', hard=true as cache bypass, and observe='none' as 'cheapest, use through setup steps of a flow' — which implies when each mode applies. However, the description never explicitly says when to call navigate_session versus siblings like screenshot_session, run_checks_on_session, or wait_for_network, and gives no when-not guidance or prerequisites.

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