x_compose
Draft tweets with AI: generate variants from a topic and goal, refine an existing draft, or score a draft for likely engagement — with tone, call-to-action, and style-matching options. Flat sub-cent price per step.
Guidance: step=generate (topic + goal required; optional tone/styleUsername/additionalContext/callToAction/mediaType/hasLink/hasMedia), refine (draft required), or score (draft required). Returns text variants with scores and suggestions. Flat floor price per call.
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": {
"step": "<step>"
},
"name": "x_compose"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| goal | No | ||
| step | Yes | Composer step. | |
| tone | No | ||
| draft | No | ||
| topic | No | ||
| hasLink | No | ||
| hasMedia | No | ||
| mediaType | No | ||
| callToAction | No | ||
| styleUsername | No | ||
| additionalContext | No |