Skip to main content
Glama
hooplus1ce

DrissionPage-MCP

by hooplus1ce

查找多个元素

find_elements
Read-only

Find all elements matching a locator in a specified tab and return their element IDs. Use this to retrieve multiple elements for further interaction or inspection.

Instructions

在标签页中定位所有匹配元素,返回摘要列表(每个元素含 element_id)。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameNo搜索范围,同 find_element 的 frame 参数
limitNo最多返回与登记的元素数量
tab_idNo标签页 id,省略时用最新标签页
locatorYes定位符,同 find_element
timeoutNo未找到时的最长等待秒数

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
countYes
elementsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

The readOnlyHint annotation covers the read-only nature. The description adds the detail of returning a summary list but does not elaborate on waiting behavior, timeout handling, or what occurs when no elements are found, which are relevant behavioral aspects.

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?

The description is a single, concise sentence with no redundant wording. It conveys the essential functionality and output format efficiently.

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?

The description is adequate for a simple read-only tool: it states what it does and what it returns. Minor omissions like error handling or relationship to sibling tools are not critical for basic invocation, but a bit more context could improve completeness.

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?

The input schema already provides descriptions for all five parameters, achieving 100% coverage. The tool description itself does not add extra meaning to the parameters, so it meets the baseline without enhancement.

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 purpose: locating all matching elements in the tab and returning a summary list with element_ids. It distinguishes from the singular find_element by explicitly saying 'all matching elements'.

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

Usage Guidelines2/5

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

The description does not provide any explicit guidance on when to use this tool versus alternatives like find_element or other navigation tools. It only describes the action without contextual selection criteria.

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