screen.capture
screen_captureCaptures a PNG screenshot of the running app and returns a file path or base64 data. Requires react-native-view-shot; otherwise it errors and you fall back to agent-device, simctl or adb.
Instructions
Screenshot the app as a PNG. Returns {path} of a file on the device. {base64:true} returns {base64} instead when small enough (else {path}). Only works if the app already has react-native-view-shot; otherwise errors and you use agent-device, simctl or adb.
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": "screen_capture"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | The tool's arguments, in order (each any JSON value). Leave out for none. | |
| full | No | Return a result over 32 KB whole instead of a summary of its size and shape. |