Skip to main content
Glama

find_buttons

Locate all clickable elements on a page, including those inside shadow DOM. Recognizes native tags, ARIA roles, and elements with cursor:pointer and onclick handlers, providing CSS selectors for each.

Instructions

Find all clickable elements on the page - including shadow DOM.

    Walks both the light DOM and every open shadow root, so buttons
    hidden inside custom elements like ``<nes-button>`` or
    ``<sds-cta>`` show up. Recognises native tags (button, a, input,
    summary) plus ARIA roles (button, link, checkbox, radio, switch,
    menuitem, tab, option, treeitem) and cursor=pointer elements
    with an onclick handler. Each entry shows the host's CSS
    selector; for shadow-wrapped buttons use ``click_shadow`` to
    reach the inner interactive element.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filter_textNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations, the description carries the burden. It discloses traversal behavior, recognized elements, and output format (CSS selector). It implies read-only operation but does not explicitly state no side effects.

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 description is concise, with a clear front-loaded main purpose. The second sentence is detailed but compact. Could be slightly more structured but is efficient overall.

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?

Given the tool's complexity (finding elements across shadow DOM), the description covers key aspects: what it finds, traversal method, recognition criteria, and output. Missing mention of performance implications or limitations (e.g., only open shadow roots).

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has one parameter, 'filter_text', but the description does not mention it. Schema coverage is 0%, so the description fails to add any meaning to the parameter, which is a significant gap.

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 clearly states the tool's purpose: finding all clickable elements on the page, including shadow DOM. It lists specific element types and ARIA roles, distinguishing it from sibling tools like 'click' and 'click_shadow'.

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 explains the tool's scope (light DOM and shadow roots) and advises using 'click_shadow' for shadow-wrapped buttons. However, it does not explicitly state when not to use this tool or provide comparisons to other find tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bituq/zendriver-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server