approve_proposal
Approve a pending proposal to write rule/lesson content or update an existing block in both the scope's Markdown file and SQLite database.
Instructions
Approve a pending proposal. For type='rule'/'lesson' this assigns a new RN-/LL- code, appends the atomic block to the scope's .md file, and inserts the corresponding row; for type='update' it splices the target's existing block in place instead. This is the single choke point that writes proposal content into both the .md file and SQLite together.
Access level: write. Returns: JSON with the resulting code, scope_id, and file location (file_path/file_offset/byte_length).
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": {
"proposal_id": "<proposal_id>"
},
"name": "approve_proposal"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| proposal_id | Yes | The pending_proposals id to approve. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |