Skip to main content
Glama

autopilot_screenshot

Builds and runs an iOS app in a simulator, then captures a screenshot for visual UI inspection and saves it to the project.

Instructions

Build the app, run it in an iOS simulator, and capture a screenshot. Returns the screenshot as an image so Claude can visually inspect the UI. Also saves the PNG to /.xap/screenshots/ and opens it in macOS Preview.

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": {
      "project_path": "<project_path>",
      "scheme": "<scheme>",
      "bundle_id": "<bundle_id>"
    },
    "name": "autopilot_screenshot"
  }
}

Input Schema

NameRequiredDescriptionDefault
schemeYesBuild scheme name
bundle_idYesApp bundle identifier (e.g. com.example.MyApp)
os_versionNo
device_nameNoiPhone 16
open_previewNo
project_pathYesAbsolute path to .xcodeproj or .xcworkspace
configurationNoDebug
launch_wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations present, the description carries the full burden, and it does disclose meaningful side effects: the screenshot is returned as an image, written to <project>/.xap/screenshots/, and opened in macOS Preview. Missing context includes what happens on build or launch failure, whether the simulator is booted/shut down, and why open_preview defaults to true. The disclosure of concrete side effects is solid but incomplete for a multi-stage operation with zero annotation coverage.

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?

Three short sentences, front-loaded with the action and followed by the return value and side effects. Every sentence earns its place and nothing is padded.

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

Completeness3/5

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

There is no output schema, so the description correctly explains the return value (an image for visual inspection) and the persisted file location. But for a tool with 8 parameters, mostly undocumented, and no annotations, the definition should say more about failure modes and the undocumented parameters before it can be called complete.

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 38% of 8 parameters; os_version, device_name, open_preview, configuration, and launch_wait_seconds all have empty descriptions. The description text never mentions a single parameter, so it does nothing to compensate for that gap, leaving an agent to guess at accepted device names, OS version formats, and what launch_wait_seconds controls.

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 names a concrete pipeline: build the app, run it in an iOS simulator, capture a screenshot, and return it as an image for visual inspection. That is a specific verb+resource statement an agent can act on without opening the schema. It stops short of 5 because it does not distinguish itself from siblings such as autopilot_build, which presumably performs part of the same pipeline.

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 purpose "so Claude can visually inspect the UI" implies the usage context well enough to select the tool for UI verification. However, there is no explicit when-to-use versus when-not guidance and no mention of autopilot_build or autopilot_clean as alternatives if only compilation or cleanup is needed.

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