Skip to main content
Glama
Antigravity in Chrome MCP Server

Antigravity in Chrome MCP Server

by sxqib

find

Locates interactive or visible page elements using a natural-language query, returning up to 20 ranked matches with reference IDs and bounding boxes.

Instructions

Find interactive or visible elements on the page using a natural-language query (matches accessible names, labels, placeholders, roles, button/link text, and aria attributes). Returns up to 20 ranked matches with ref IDs and bounding boxes.

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

Input Schema

NameRequiredDescriptionDefault
queryYesNatural-language description of what to find (e.g., "search bar", "Submit button", "email input").
tabIdNoTarget tab ID (defaults to active managed tab).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does disclose useful behavior: matching surface area, a ranked result set, a hard cap of 20 matches, and the presence of ref IDs and bounding boxes in the response. It does not state whether the scan covers the whole DOM or only the visible viewport, nor that it has no side effects, which keeps it below a 5.

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?

Two tightly written sentences, front-loaded with the capability and followed by the return contract. Every clause carries information — matching surface, result ranking, cap, and identifier format — with no filler.

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, no-output-schema tool, the description covers purpose, matching semantics, and the shape of the returned matches, which is the key thing an agent needs to chain into a follow-up action using a ref ID. Minor gaps remain around viewport scope and whether the result set is exhaustive or best-effort.

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 already 100%, so the baseline is 3; the description earns extra credit by explaining what 'query' actually matches against in the DOM and accessibility tree, which the schema only gestures at with 'natural-language description'. The 'visible' qualifier also implicitly hints that the search is scoped to rendered elements, adding a little meaning for tabId's target surface.

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?

The description gives a specific verb+resource ('Find interactive or visible elements on the page') and enumerates what the query matches against (accessible names, labels, placeholders, roles, button/link text, aria attributes), so the capability is unambiguous. It stops short of distinguishing itself from sibling inspection tools like read_page or get_page_text, so it does not fully earn a 5.

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 only implied by the phrase 'natural-language query' — the agent can infer this is the tool for locating a specific element before acting on it. There is no explicit when-to-use/when-not guidance and no named alternative for cases where the agent wants full page structure or plain text rather than located elements.

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