session_step
Report ONE step of a live run and get back any warnings immediately (loop detected / budget breach). Pass the step (action + inputs) and any counters you have (step, max_steps, tokens_used, token_budget, cost_used_usd, cost_budget_usd, context_used, context_window, task, recent_actions. context_window). Warnings are advisory - act on them to self-correct mid-run. Free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| step | Yes | the step: action/tool + inputs | |
| counters | No | running counters (tokens/cost/context/max_steps) | |
| session_id | Yes | ||
| loop_threshold | No | identical calls that count as a loop (default 3) |