rewrite_prompt
Prompt studio AI rewrite: mode=refine edits the draft per instruction; mode=sync merges rules added to the official prompt into the draft while keeping the user’s own changes. Returns the rewritten text and a summary of changes without saving; save with save_custom_prompt (after sync, pass baseline=official). Rate-limited. (Requires the user's sign-in with scope interviews:write.)
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": {
"scene": "<scene>",
"mode": "<mode>",
"draft": "<draft>"
},
"name": "rewrite_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | ||
| mode | Yes | ||
| draft | Yes | ||
| scene | Yes | ||
| instruction | No |