Skip to main content
Glama

Pick an element interactively

pick_element

Resolve visual phrases like 'this logo' by prompting the user, highlighting hovered elements, and returning the clicked page element; Escape cancels.

Instructions

Resolve visual phrases such as 'this logo' with the page-runtime picker. Tell the user what to click before calling. The call blocks while the page highlights hovered elements, then returns the clicked element; Escape cancels. interaction_prompt changes only the page banner and never opens a client form.

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": "pick_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
page_idNoTarget page id from get_pages; omit to use the selected page
interaction_promptNoConcrete instruction shown in the browser page banner, e.g. 'Click the logo you mean · Esc to cancel'

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.4/5.0
Behavior5/5

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

With only readOnlyHint=false supplied, the description carries the behavioral burden well: it discloses that the call blocks, that the page highlights hovered elements live, that the return value is the clicked element, and that Escape cancels. It also scopes interaction_prompt to the page banner only and explicitly rules out a client form, preventing a plausible misreading.

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?

Four short sentences, front-loaded with the purpose, then user-facing instruction, then blocking/cancel behavior, then a targeted clarification about the prompt parameter. No sentence is filler and each adds distinct information.

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?

Two optional params with full schema coverage, no output schema, and the description still describes the return value ('returns the clicked element') plus the blocking and cancellation semantics. An agent has everything needed to decide to call it, warn the user, and interpret the result.

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 a baseline of 3 applies, but the description adds genuine meaning: it clarifies that interaction_prompt affects only the page banner and never opens a client form, which the schema text does not say. It adds nothing about page_id beyond 'page-runtime picker', leaving the omit-to-use-selected-page behavior to the schema.

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 and resource: it resolves visually-referenced elements ('this logo') through a page-runtime picker and returns the clicked element. The interactive, user-driven nature distinguishes it conceptually from programmatic siblings like inspect_element or evaluate, though no sibling is named explicitly.

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?

Gives a clear triggering condition ('Resolve visual phrases such as "this logo"') and a prerequisite behavior ('Tell the user what to click before calling'), which is real usage guidance. It does not name when to prefer a non-interactive alternative, so it stops short of explicit alternatives or exclusions.

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