Skip to main content
Glama
hooplus1ce

DrissionPage-MCP

by hooplus1ce

拖拽滚动条

vtable_drag_scrollbar

Drag VTable scrollbar sliders to scroll content via real mouse actions, returning scroll positions for assertions.

Instructions

拖拽 VTable 滚动条滑块实现滚动(真实鼠标:按下→拖动→释放)。

滑块几何由表格总量与滚动比例确定性计算(滚动条为 canvas 绘制)。 返回拖拽前后的 scrollTop/scrollLeft 供断言。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tab_idNo
directionNovertical=纵向滚动条, horizontal=横向滚动条vertical
distance_pxNo滑块拖动的像素距离(内容滚动距离 = 该值 × 内容比率)
table_indexNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

The description mentions the use of real mouse events (按下→拖动→释放) and notes that scrollbar geometry is computed deterministically because it's canvas-drawn. It also states it returns before/after scrollTop/scrollLeft. However, it does not mention potential side effects, prerequisites, or failure modes, leaving some behavioral gaps.

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 extremely concise—two sentences—with no redundant information. Every clause adds value, covering the action, mechanism, and return value without extra fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the complexity (4 parameters, some with unclear semantics), the description is incomplete. It doesn't explain the role of tab_id/table_index, the conditions for successful execution (e.g., scrollbar visibility), or the exact structure of the return value beyond scrollTop/scrollLeft. This leaves the agent guessing about important details.

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

Parameters2/5

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

Only two of four parameters (direction and distance_px) have descriptions, with distance_px explaining the multiplication by content ratio. The tab_id and table_index parameters have no description at all, leaving their purpose and default behavior ambiguous.

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 action (drag scrollbar) and the resource (VTable), with enough specificity to distinguish from sibling tools like vtable_scroll_viewport or vtable_scroll_to_cell. Mentioning 'canvas 绘制' further clarifies the target is the table's built-in scrollbar.

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?

The description implies when to use this tool (for real mouse drag on the scrollbar), but does not explicitly contrast with alternatives like programmatic scrolling or scroll-to-cell. A user must infer the use case from the description alone, which is adequate but not fully explicit.

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