plainhub_decide
Create a pending decision card in the repository ledger when a human must approve or reject a change, spend, or permission update; sync it to PlainHub for review.
Instructions
Raise a decision card for a person (status pending) in the ledger in the repository folder set by the PLAINHUB_LEDGER environment variable (if not set, the folder the server was started in) (.agents/decisions/.md). Use it when something needs a human choice, such as shipping a change, spending money or changing permissions; the person approves or rejects it in PlainHub. Writes the file only; run plainhub_ledger_sync to share it. Returns a link that opens it in PlainHub (on a phone too) once it is pushed, or what to do first if the repository is not on GitHub. Refuses if the id already exists. Example: {"id": "2026-10-08-ship-login-fix", "summary": "Ship the login fix?", "ref": ["fix-login-timeout"], "body": "- What changes: users stay signed in\n- Risk: small"}
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": {
"id": "<id>",
"summary": "<summary>"
},
"name": "plainhub_decide"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Card id: lowercase letters and digits joined by - or ., e.g. 2026-10-08-ship-login-fix | |
| ref | No | Branches, commits or threads this card is about | |
| body | No | Markdown body in the room language (.agents/room.md language:; English if not set) (max 4KB). Start a new paragraph with a blank line, or use a list ("- "); a single line break does not start a new line (as on GitHub). | |
| refs | No | Renamed to ref. Do not use (the card is not written) | |
| summary | Yes | One line in the room language (.agents/room.md language:; English if not set), max 120 characters |