Rewrites a highlighted section of an XML prompt according to the user instruction while leaving the surrounding prompt untouched. Returns only the replacement text; the caller is responsible for splicing it back into the editor.
Documentation Index
Fetch the complete documentation index at: https://docs.tetherai.ca/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The exact substring the user highlighted in the editor; the model rewrites only this slice and the caller splices the result back in.
Natural-language directive for how to rewrite the selection.
The full surrounding XML prompt, supplied as read-only context so the rewrite stays consistent in tone and structure.
Optional hint about where the selection lives (e.g. goal section, rule list) to disambiguate the rewrite target.
Available runtime variables and field scopes; constrains the rewrite to real @variables instead of inventing placeholders.
When true, editing uses the stronger battle-tested XML architecture system prompt; otherwise stays closer to the user request with lighter guardrails.
Pin to a specific provider/model (e.g. { provider: 'anthropic', model: 'claude-sonnet-4-6' }) overriding the org's default assignment.
{
"provider": "anthropic",
"model": "claude-sonnet-4-6"
}