Skip to main content
Glama
hooplus1ce

DrissionPage-MCP

by hooplus1ce

读取操作提示气泡

get_toasts
Read-only

Read current AntD global messages and notification content for operation result assertions, including iframe-penetrated queries. Specify active frame or tab to target the correct DOM.

Instructions

读取当前显示的 AntD message 全局提示与 notification 通知内容(用于操作结果断言)。

查询范围默认为主文档+自动穿透 iframe;portal 弹层归属触发它的功能模块文档, 建议传 frame='active' 或使用触发元素的所在文档。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
frameNo搜索范围('active'=激活态 iframe,见 frame_list)
tab_idNo标签页 id,省略时用最新标签页

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
message_textsYesant message 全局提示气泡文本
notification_textsYesant notification 通知提醒框文本

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A5/5.0
Behavior5/5

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

The readOnlyHint annotation already indicates no side effects, and the description reinforces this by stating it only reads content. It also transparently explains the default scope (main document + auto-penetrating iframes) and the portal attachment behavior, ensuring no surprises.

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 two sentences and to the point, covering the purpose, usage context, and frame behavior without any redundant information. It is well-structured and easy to parse.

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

Completeness5/5

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

The tool has an output schema, and the description provides essential usage context (asserting operation results) and handling of iframe/portal specifics. It is complete for an agent to decide when and how to invoke it, especially given the related tool environment.

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

Parameters5/5

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

Both parameters (frame and tab_id) have clear descriptions. 'frame' explains the meaning of 'active' and references frame_list for valid values; 'tab_id' specifies the default behavior when omitted. The schema coverage is 100%, and the descriptions add necessary context.

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 reads current AntD message and notification content for assertion purposes. It is distinct from sibling tools, which focus on navigation, element interaction, or other AntD-specific actions, making its purpose unambiguous.

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

Usage Guidelines5/5

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

It explains when to use the tool ('用于操作结果断言' – for asserting operation results) and provides specific guidance on frame selection due to portal behavior, advising to use frame='active' or the triggering element's frame. This gives actionable context beyond the basic function.

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