iph_syslog
Capture an iPhone's system log in the background while automating app actions, then read new entries incrementally to verify what an app logged after a tap.
Instructions
Capture the phone's log in the background while other calls run, to check what an app logged after a tap. "start" (one capture at a time; stop an ended one before starting again) keeps the entries in a buffer in memory, newest last, each with a seq; "read" returns the entries newer than after (the cursor of the previous read) without stopping the capture, so the loop is start, tap, read, tap, read, stop; "stop" ends it (with grep or max it returns the latest matching entries); "status". Filter with app (bundle id or name, as iph_launch takes it; matched by where the app is installed, so it survives restarts and includes its extensions), process (executable names such as Preferences; survives app restarts) or pid; an entry is kept if it is from any listed app or process; unfiltered over Wi-Fi it is thousands of entries a second, and the buffer keeps the last 100,000 entries by default. A read says how many entries were dropped before it could get them.
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": {
"action": "<action>"
},
"name": "iph_syslog"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app | No | start: keep only these apps' entries, each a bundle id or an app name; an unknown app fails before anything starts. | |
| max | No | read: most entries returned, the oldest first. stop: most entries returned, the latest. Default 50, at most 1000. | |
| pid | No | start: keep only this pid (filtered on the phone). | |
| grep | No | read, stop: regular expression matched against each message. | |
| after | No | read: only entries after this seq; pass the previous read's cursor. Omit for the oldest the buffer holds. | |
| level | No | start: lowest level kept. | |
| action | Yes | ||
| max_mb | No | start, with output: move the file to <file>.1 at this size in MiB, 1 to 4096 (default 64). | |
| output | No | start: absolute path of a JSON Lines file that also gets every kept entry (whole messages). Without it nothing is written to disk. | |
| process | No | start: keep only these executables. With app, an entry is kept if it matches either. | |
| buffer_mb | No | start: most memory the buffer takes in MiB, 1 to 1024 (default 64). | |
| buffer_entries | No | start: most entries the buffer holds, 1 to 1000000 (default 100000); the oldest are dropped. |