Skip to main content
Glama

browser.execute_action

Executes one policy-checked browser action, such as navigate, click, type, or scroll, in a session and returns what changed plus an updated page observation.

Instructions

Execute one browser action (navigate, click, hover, type, press, select_option, scroll, …) in a session, using the same action schema the agent planner emits. Actions are policy-checked and audited, and governed actions may require a granted approval_id. Call browser.observe first to get targetable element IDs and selectors. Returns the action's verification (what changed) and an observation of the page after it (up to 20 interactables).

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": {
      "action": "<action>"
    },
    "name": "browser.execute_action"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionYesThe browser action to execute, in the shared action schema: an action type (navigate, click, type, scroll, wait, done, …) plus its arguments, e.g. a URL for navigate or an element selector/index for click and type.
detailNo'compact' (default) leaves out what choosing the next step does not need: the full session record (see browser.get_session), remote-access diagnostics and, for actions, the pre-action snapshot. 'full' returns the complete payload.compact
session_idNoTarget session id, from browser.create_session or browser.list_sessions. Optional when exactly one session is live; observe and act tools create one when none is.
approval_idNoID of a granted approval that authorizes this action when the active policy requires one. Omit when the action does not need approval.
workflow_profileNogoverned: a call that can change something waits for approval. It answers status approval_required with an approval_id; call again with that id once it is granted. fast, the default, runs it directly unless this tool or deployment always requires approval.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.19.0
    • addedInput schema / properties / workflow_profile
      Added value: +{
      +  "description": "governed: a call that can change something waits for approval. It answers status approval_required with an approval_id; call again with that id once it is granted. fast, the default, runs it directly unless this tool or deployment always requires approval.",
      +  "enum": [
      +    "fast",
      +    "governed"
      +  ],
      +  "type": "string"
      +}
  2. Addedv1.8.1
  3. Removedv1.4.2
  4. Changed3 schema fields changedv1.4.2
    • addedInput schema / properties / action / description
      Added value: +"The browser action to execute, in the shared action schema: an action type (navigate, click, type, scroll, wait, done, …) plus its arguments, e.g. a URL for navigate or an element selector/index for click and type."
    • addedInput schema / properties / approval_id / description
      Added value: +"ID of a granted approval that authorizes this action when the active policy requires one. Omit when the action does not need approval."
    • addedInput schema / properties / session_id / description
      Added value: +"ID of the target browser session, as returned by browser.create_session or listed by browser.list_sessions."
  5. Changed1 schema field changedv1.0.5
    • changedInput schema / $defs / BrowserActionDecision / properties / action / enum
      Previous value: -[
      -  "navigate",
      -  "click",
      -  "hover",
      -  "select_option",
      -  "type",
      -  "press",
      -  "scroll",
      -  "wait",
      -  "reload",
      -  "go_back",
      -  "go_forward",
      -  "upload",
      -  "social_login",
      -  "social_post",
      -  "social_comment",
      -  "social_like",
      -  "social_follow",
      -  "social_unfollow",
      -  "social_repost",
      -  "social_dm",
      -  "request_human_takeover",
      -  "done"
      -]New value: +[
      +  "navigate",
      +  "click",
      +  "hover",
      +  "select_option",
      +  "type",
      +  "press",
      +  "scroll",
      +  "wait",
      +  "reload",
      +  "go_back",
      +  "go_forward",
      +  "upload",
      +  "request_human_takeover",
      +  "done"
      +]
  6. Changed14 schema fields changedv1.0.3
    • changedInput schema / $defs / BrowserActionDecision / properties / element_id / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / file_path / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / key / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 120,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / label / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 1000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / platform / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 120,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / recipient / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 200,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / selector / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 2000,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / text / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 5000,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / url / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 2000,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / username / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 500,
      +    "minLength": 1,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • changedInput schema / $defs / BrowserActionDecision / properties / value / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]New value: +[
      +  {
      +    "maxLength": 1000,
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / session_id / maxLength
      Added value: +120
    • addedInput schema / properties / session_id / minLength
      Added value: +1
  7. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Beyond the annotations, it discloses that actions are policy-checked and audited, that governed actions may return an approval_required status needing approval_id, and what the response contains (verification of what changed plus a post-action observation capped at 20 interactables). That is meaningful operational context an agent cannot get from readOnlyHint/destructiveHint alone.

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?

Four sentences, front-loaded with the core purpose, then prerequisite, then return shape. Dense but every sentence carries distinct information; the ellipsis in the action list is a minor looseness.

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?

There is no output schema, yet the description states what is returned (verification plus post-action observation), covers the approval path, and names the prerequisite call. For a non-idempotent, open-world mutation tool that is enough for an agent to invoke it correctly.

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% and each top-level parameter already carries its own description, so the schema does the heavy lifting. The description adds only framing ("the same action schema the agent planner emits") and the conditional approval_id note, which is already in the schema, so this sits at baseline.

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?

"Execute one browser action" names a specific verb and resource, and the parenthetical enumerates the action vocabulary (navigate, click, hover, type, press, select_option, scroll). It also distinguishes itself from browser.observe by assigning observe the discovery role.

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

Usage Guidelines4/5

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

The description gives a concrete prerequisite ("Call browser.observe first to get targetable element IDs and selectors") and explains the fast vs governed selection via workflow_profile. It stops short of saying when to prefer alternatives like browser.eval_js or browser.find_elements for the same goal.

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