keep_original
Call this only when a rewrite changed a fact, a name, a number, a date, a yes or no or a promise, or reversed the meaning. Different wording, tone, sentence order or style is not a reason: the user wants the rewrite, and your own text sounds like AI. Removed padding is not a changed fact either: pleasantries, empty offers, frames such as "It's worth noting that" and repeats that reright took out (removed_padding) were removed on purpose, and a call that quotes them is refused. Pass the id, a category, the exact phrase from your text as original and the phrase in final_text that replaced it as rewritten, each copied word for word, at most 140 characters. It returns your own text as final_text; use that exactly. When the user's setting is "Only when unsure", it returns status pending with a review_url instead: the user decides between the two versions, so give the user the link, ask them to open it and approve or edit, and call rewrite_result with the id until it is not pending. It works only for a rewrite nobody checked. When the user checked or edited the text, the user's version stands.
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": "keep_original"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | the id returned by rewrite | |
| reason | No | not used; send category, original and rewritten | |
| category | No | required: what the rewrite changed, one of fact, name, number, date, negation (a yes or no turned around), promise, other | |
| original | No | required: the exact phrase from your text that the rewrite changed, copied word for word, at most 140 characters | |
| rewritten | No | required: the exact phrase in final_text that replaced it, copied word for word, at most 140 characters |
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 |