martin_logs
Read recent MartinLoop events, ledger entries, and operator control receipts for a single run to diagnose stuck or failed runs and audit operator actions.
Instructions
Read recent MartinLoop events, ledger entries, and operator control receipts for a single run. Use to observe live or completed run activity, diagnose stuck or failed runs, or audit operator actions. Do not use to check run completion status — use martin_get_status instead. Do not use to retrieve verification evidence — use martin_get_verification_results instead. This tool only reads persisted run files and does not execute commands, modify state, or contact GitHub.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Absolute or relative path to a loop-record.json file or run directory. Mutually exclusive with loopId and latest. | |
| limit | No | Maximum number of log entries to return, sorted by timestamp descending. Defaults to 20. | |
| latest | No | When true, loads the most recently updated run in the run store. Mutually exclusive with file and loopId. | |
| loopId | No | MartinLoop run identifier from the run store. Mutually exclusive with file and latest. | |
| runsDir | No | Override the default run-store root directory. Optional; defaults to the MartinLoop runs directory. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| live | Yes | ||
| loopId | Yes | Unique MartinLoop run identifier. | |
| source | Yes | Resolved path to the loop-record source file. | |
| entries | Yes | Log entries sorted by timestamp descending, capped at limit. | |
| logCount | Yes | Number of log entries returned after applying the limit. | |
| sourceKind | Yes | How the run was identified: by file path, loop ID, latest flag, or runs directory. |