Skip to main content
Glama
wooter-s

weixin-devtools-mcp

by wooter-s

get_page_snapshot

Capture a structured scope graph of a WeChat mini-program page or custom component with configurable depth, element, and scope limits for focused UI testing.

Instructions

获取 Page 或自定义组件的 V2 scopes/edges 作用域图(默认预算 4/64/1000)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
rootNo可选;必须唯一定位到自定义组件
budgetNo
formatNocompact
filePathNo可选的 UTF-8 快照输出路径
includePositionNo
includeAttributesNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYes
codeYes
dataYes
metaYes
errorYes
warningsYes
nextActionsYes
observationYes
partialDataYes
schemaVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.7.0

TDQS

C2.9/5.0
Behavior3/5

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

No annotations are provided, so the description carries the behavioral disclosure burden. It adds useful context about default budget values (4/64/1000) and the non-mutating 'get' nature, but it does not mention possible side effects, error behavior, or what happens when root is omitted.

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 a single sentence with no filler, and it front-loads the default budget. It is concise, though the compactness leaves some important context unstated.

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 complex nested root schema and six optional parameters, the description is too brief to be complete. It omits guidance on when to use the path-based root, what the budget limits mean behaviorally, and how the snapshot relates to other debugging tools. The output schema covers return shape, but invocation context is incomplete.

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?

Schema description coverage is only 33%, so the description must compensate. It does mention Page vs custom component and the default budget, which helps with root and budget, but it does not clarify format, filePath, includePosition, or includeAttributes semantics.

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 uses a specific verb and resource: it retrieves the V2 scopes/edges scope graph for a Page or custom component. It is clear about what the tool produces, though it does not explain the 'scopes/edges' jargon or distinguish itself from siblings like find_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?

There is no explicit guidance on when to use this tool versus alternatives such as find_elements or get_current_page. The description implies it is for scope-graph inspection, but does not state conditions, exclusions, or preferred use cases.

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