appium_screenshot
Capture a PNG screenshot of the current mobile app screen or a targeted element, optionally resizing it to lower token usage.
Instructions
Take a screenshot and save as PNG. Optionally provide elementUUID to capture only that element.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxWidth | No | Optional maximum width in pixels to resize the screenshot. The aspect ratio is preserved. Useful for reducing token usage when sending screenshots to LLMs. | |
| sessionId | No | Session ID to target. If omitted, uses the active session. | |
| elementUUID | No | Optional element UUID. If provided, captures only this element. If omitted, captures full screen. | |
| returnRawBase64 | No | When true, returns the raw base64-encoded PNG image instead of saving it to disk. This should only be enabled when a human explicitly invokes the tool manually, typically to view the screenshot on a different machine (e.g. when the server runs on a remote machine and the saved file is not accessible). An LLM must always keep this false and rely on the saved file path. |