screen_snapshot
Capture and filter on-screen UI elements from iOS apps. Compare snapshots to detect changes, search by text or regex, and limit output for efficient inspection.
Instructions
Read screen → generation-scoped refs (g3t8). PRIMARY read tool. Defaults: onScreenOnly=true, limit=40 (token-safe). TikTok: texts only (tree blocked). search= substring by default; a|b auto-enables regex. showDiff=true compares to previous snapshot. Do not parallelize app acts (tap/swipe/type).
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_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | TikTok forced to texts | |
| limit | No | Max nodes printed, default 40 | |
| search | No | Substring filter; use searchRegex:true or a|b for regex alternation | |
| showDiff | No | Summarize +/− vs previous snapshot | |
| searchRegex | No | Force regex (default auto if search contains |) | |
| onScreenOnly | No | Default true: hide off-screen nodes from output |