Rewrite a message by AI (spends credits)
rewrite_messageSPENDS CREDITS: quote_message_rewrite first, show the price, after the user's yes pass its credits, result_id and expected_revision. The new text comes in a few seconds: get_outreach_lead. [REST: POST /api/tasks/{id}/outreach/leads/{cid}/steps/{step_id}/rewrite]
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": {
"task_id": "<task_id>",
"cid": "<cid>",
"step_id": "<step_id>",
"mode": "<mode>",
"confirm_credits": "<confirm_credits>"
},
"name": "rewrite_message"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | The person's id (cid) from list_leads. | |
| mode | Yes | other_hook (another fact), shorter, warmer, rewrite (with the note). | |
| note | No | ||
| step_id | Yes | The step id of the message (get_outreach_lead steps[].step_id). | |
| task_id | Yes | The search id (task id), e.g. from list_searches or create_search. | |
| result_id | No | ||
| generation_id | No | The outreach generation id (get_outreach campaign.generation.id); omitted: the current one. | |
| confirm_credits | Yes | The price in credits the matching quote returned, shown to the user and confirmed by them. | |
| expected_revision | No |