Request a budget
request_budget[write · asks the person] Ask once for a budget of credits on one project, so a run's paid steps do not each wait for a yes. Ask for what the run will spend (a plan's quote) before its first paid step. A new budget replaces what is left of the last one on that project, it does not add to it, so ask again only for everything the run still has to spend. The person approves it like a paid call, and you call again with approval_id as for any approval. Once approved, calls on that project that cost credits run without asking while the budget covers them, for 12 hours. A call that deletes something still asks, and the day's limit and the balance still apply. Answers the budget, what is left, what it replaced and when it ends.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"credits": "<credits>"
},
"name": "request_budget"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credits | Yes | The most the run may spend on this project without asking again. It replaces any budget left there. | |
| project_id | Yes | The AskEditor project (from list_projects). | |
| approval_id | No | Only when a previous call answered needs_approval: its approval_id, once the person has approved it. |