martin_status
Check the current budget and cost state of a Martin loop record to prevent runaway loops and control spending.
Instructions
Return the current budget and cost state of a Martin loop record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Optional path under the Martin runs root to a loop-record.json file, a legacy .jsonl file, or a run-store directory. | |
| latest | No | When true, loads the most recently updated loop record in the runs directory. | |
| loopId | No | Loop ID resolved as <runsDir>/<loopId>/loop-record.json. | |
| runsDir | No | Optional runs-root override resolved under the default Martin runs root. | |
| loopJson | No | JSON-serialized LoopRecord. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget | Yes | ||
| loopId | Yes | ||
| source | Yes | ||
| status | Yes | ||
| costUsd | Yes | ||
| attempts | Yes | ||
| pressure | Yes | ||
| avoidedUsd | Yes | ||
| inspection | Yes | ||
| shouldStop | Yes | ||
| lifecycleState | Yes | ||
| remainingTokens | Yes | ||
| remainingBudgetUsd | Yes | ||
| remainingIterations | Yes |