rewrite_result
Call this when rewrite or keep_original returned status pending. It waits for the result of that id and returns the same fields as rewrite. While it stays pending with a review_url, the user has not decided yet: make sure the user has the link, then call it again. Use final_text exactly. Call keep_original only for a changed fact, name, number, date, yes or no or promise. Filler listed in removed_padding was taken out on purpose and is not a reason.
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>"
},
"name": "rewrite_result"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the id returned by rewrite | |
| max_wait_seconds | No | how long to block, default 240, maximum 540; 0 checks the status and returns at once |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| run | No | ||
| note | No | ||
| agent | No | ||
| reason | No | ||
| status | Yes | ||
| rewritten | Yes | ||
| final_text | No | ||
| review_url | No | ||
| instruction | Yes | ||
| upgrade_url | No | ||
| removed_padding | No |