Skip to main content
Glama
weapp-driver-mcp

weapp-driver-mcp

by Gao12123

Screenshot the mini program

mp_screenshot

Capture the current WeChat Mini Program screen and return it inline for direct inspection, with an option to save a copy for diagnosing layout or state issues.

Instructions

Capture the current mini program screen and return it inline as an image, so it can be inspected directly. Optionally save a copy under the configured output directory. Screenshots are the fastest way to diagnose a layout or state problem that DOM reads do not explain.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "mp_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
save_toNoFile name to save the screenshot under output_dir, e.g. "detail-page.png". Relative paths only; the image is returned inline either way.

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?

No annotations are supplied, so the description carries the full burden. It usefully discloses that the image is returned inline regardless of saving and that saving is optional into a configured output directory, but it omits whether capture waits for render/idle, what the current screen means if a navigation is in flight, and any size or rate constraints.

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?

Three short sentences, front-loaded with the action and result, then the optional save, then the diagnostic rationale. No filler, though the last sentence is motivational rather than operational.

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?

For a simple one-parameter capture tool with no output schema, the description covers the return shape (inline image) and the optional persistence path. The main gap is timing/wait semantics, which matters for a screenshot tool that must capture a settled state.

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?

Only one parameter, save_to, and the schema already documents it at 100% coverage including the 'returned inline either way' caveat. The description restates that saving is optional and targets a configured output directory, adding little beyond the schema.

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?

States a specific verb and resource ('Capture the current mini program screen') plus the output form (returned inline as an image). It also positions itself against DOM reads, which distinguishes it from the read/query siblings, though it never names them.

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?

Gives a clear selection rule: use screenshots for layout or state problems that DOM reads do not explain. No explicit when-not guidance or prerequisites (e.g. whether the app must be foregrounded) are stated.

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