Skip to main content
Glama

Find elements by description

find

Locates up to 20 elements in a browser tab using a natural-language query and returns refs for form input or computer actions, so agents can target page controls by description.

Instructions

Find up to 20 elements matching a natural-language query (e.g. "search box", "login button"). Returns [ref_N] role "name" lines whose refs can be passed to form_input or computer.

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": {
      "query": "<query>",
      "tabId": "<tabId>"
    },
    "name": "find"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesWhat to find, in natural language
tabIdYesTarget tab ID (must be in the MCP group)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.24.1

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two valuable behaviors: the hard cap of 20 results and the exact return shape of `[ref_N] role "name"` lines, plus that refs are reusable in form_input/computer. It says nothing about no-match behavior, whether refs expire or require a fresh page state, or whether the call has any side effects on the tab.

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?

Two tight sentences with the cap and purpose front-loaded and the return format immediately after. Nothing is wasted, though the parenthetical examples slightly lengthen the first sentence without adding new constraints.

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 two-parameter read tool with no output schema, the description adequately covers what comes back and how to use it. The remaining gap is failure/empty-result behavior and ref lifetime, which an agent would need before relying on results across multiple calls.

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 both query and tabId are already documented, and the description only echoes query semantics with examples. Baseline 3 applies since the schema does the heavy lifting and the description adds no constraint such as query length or specificity guidance.

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 (find) and resource (elements matching a natural-language query) with concrete query examples like "search box" and "login button". It does not differentiate itself from retrieval siblings such as read_page, get_accessibility_tree, or resolve_target, so an agent still has to guess which element-lookup tool to pick.

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 implied by the downstream hint that returned refs can be passed to form_input or computer, which tells the agent this is the step before acting on an element. However there is no explicit when-to-use versus the other page-reading siblings, and no guidance on when this tool is the wrong choice.

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