price_raise
Quote and confirm a higher price for a refused seat after a spending-limit stop, then resume the run once the user approves the quoted price.
Instructions
After a price refusal stopped a run (exit 24, run_status says so), the refused seat's model can be given a higher price here, in two calls. step "quote": looks up the cheapest OpenRouter host that can serve the refused seat and returns a text for the USER plus its hash shown; nothing is written. step "confirm": with shown and reason (the user's own yes, in their words), writes the price row into pricing.user.json of this project, which every later run here reads. SHOW THE USER THE QUOTED TEXT AND GET THEIR YES IN THE CHAT BEFORE YOU CALL CONFIRM. NEVER CONFIRM ON YOUR OWN: a higher price raises what every later call of that seat is counted at against the spending limit. Confirm spends nothing. Continue the run with resume_run; it stops at the spending-limit gate once more because a price changed, and the person answers that gate. Tree members, advice runs and seats whose price limit the chain itself sets are refused (a tree member goes through tree_decide).
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": {
"run": "<run>",
"step": "<step>"
},
"name": "price_raise"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run | Yes | ||
| step | Yes | ||
| shown | No | ||
| reason | No |