Generate Text
generate_textWrite copy for a brand. content writes a post or article draft and saves it (to reword that post later, edit it with save_post(action=post, postId), do not generate_media(action=media) again); turbo runs a batch and needs approval; repurpose turns an existing post into new ones; enhance rewrites a prompt before media generation. Pass brandId. Saved drafts are never published. Variable cost: 0–4800 credits 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": {
"action": "<action>",
"input": "<input>"
},
"name": "generate_text"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The fields of the chosen action. | |
| action | Yes | content: Generate brand-voice text from a topic or brief. turbo: Generate a branded Turbo run of images/videos/carousels using count, platforms and date range. repurpose: Create another-channel draft from a post. enhance: Preview Studio/Agent media enhancement with effective organization/brand settings and pack metadata. | |
| organization | No | Organization this call acts in: its name, slug or id from get_context(action=organizations). Required when the connection covers several organizations (a call without it is refused with the list of organizations and their brands); a connection limited to one organization works inside it, so leave this argument out there (naming any organization is refused). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| message | No |