Skip to main content
Glama

session_screenshot

Captures the current emulator screen in a session and returns a PNG so you can visually verify an app's interface after installing and launching it.

Instructions

截取会话中模拟器的当前画面,直接把 PNG 返回给你看。配合 session_start 的 emulator 参数使用:可以 adb install 后启动 App,再截图确认界面是否正确。这是唯一能让 AI 自己看到「装上去以后长什么样」的手段。

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "session": "<session>",
      "issueNumber": "<issueNumber>"
    },
    "name": "session_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
sessionYessession_start 返回的 session id
timeoutMsNo等待截图的毫秒数,默认 60 秒
issueNumberYes会话对应的 issue 号

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose the key behavioral trait: the PNG is returned directly into the response so the agent can visually inspect it, and it implies an emulator-backed session is required. It omits what happens on timeout or when the emulator is absent, which is the main remaining gap for a mutation-free read tool.

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 the most decision-relevant fact (the PNG is returned for viewing). Bold emphasis is used sparingly and the workflow sentence earns its place; nothing is redundant.

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 three-parameter tool with no output schema and no annotations, the description covers the essential unknown — that the return value is a viewable image — plus the prerequisite emulator session. Edge-case behavior (timeout, missing emulator) is not covered, keeping it short of fully complete.

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?

Schema description coverage is 100%, so all three parameters are already documented in the schema. The description adds only indirect meaning (that the session must be emulator-backed) and says nothing about issueNumber or the timeout behavior beyond what the schema states, so baseline 3 applies.

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 states a specific verb and resource (capture the current emulator screen in the session) and highlights its distinguishing behavior — returning a PNG image rather than text. It does not explicitly contrast itself with sibling tools such as session_render, but the purpose is unambiguous from the text alone.

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?

It gives concrete when-to-use context: pair with session_start's emulator parameter, adb install, launch the app, then screenshot to verify the UI. That is a clear workflow. It lacks explicit exclusions or failure conditions (e.g., what to do if no emulator is configured).

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