spawn_budget_status
Report current spawn-budget usage (cap, used, free) and per-task RSS to decide whether another spawn() will be admitted.
Instructions
Report current spawn-budget usage: cap, used, free, plus per-running-task RSS. Used to decide whether another spawn() will be admitted.
Values come from the budget daemon (refreshes every SPAWN_BUDGET_POLL_S
seconds via ps). Just-spawned tasks show their initial estimate until
the daemon catches up. Visible (pid=0, Terminal-launched) spawns are
tracked too: the daemon resolves their live pid from the forced
session-id and measures real RSS, and reaps a row whose cid never
resolves past SPAWN_VISIBLE_TTL_S (#64).
Returns structuredContent (SpawnBudgetStatus) plus the legacy text block.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tasks | No | ||
| cap_mb | No | ||
| poll_s | No | ||
| enabled | No | ||
| free_mb | No | ||
| running | No | ||
| used_mb | No | ||
| tokens_24h | No | ||
| tokens_free | No | ||
| cost_usd_24h | No | ||
| token_budget | No | ||
| cost_free_usd | No | ||
| cost_budget_usd | No | ||
| cost_budget_enabled | No | ||
| token_budget_enabled | No |