Read main-process stdout/stderr
get_main_logsRetrieve captured log lines from the Electron app's main process. Filter by stream, timestamp, or regex to identify issues.
Instructions
Returns the spawned process's captured log lines (stdout + stderr interleaved in order of receipt). These typically include the app's main-process startup lines and any backend/proxy output it prints when running packaged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Session id. | |
| grep | No | Regex (JS syntax) matched against each line's text. Use `^\[API\]` to see only bundled-API output, for example. | |
| lines | No | Last N lines. Default: all buffered (up to 5000). | |
| since | No | Only lines with ts > this epoch-millisecond value. | |
| stream | No | Filter by stream (default: both). |