Post Write
post_writeGenerate, shorten, or rewrite social media post text from an instruction or existing copy, with optional platform and character limits. The result is not saved; pass it to create or schedule.
Instructions
Write the text of a social media post with the organization's AI: WRITE a post from an instruction (facts come from the knowledge base), or SHORTEN or REWRITE a text. Returns the text, with tooLong when it still exceeds maxLength. Nothing is saved: pass the text to post_create or post_schedule.
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": {
"organizationId": "<organizationId>",
"action": "<action>"
},
"name": "post_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The text to shorten or rewrite (required for SHORTEN and REWRITE); for WRITE an optional starting point. | |
| action | Yes | WRITE a new post from the instruction, SHORTEN or REWRITE the text. | |
| language | No | Two-letter language code. Default: the organization's language. | |
| platform | No | Type of the channel the text is for (see channel_list), e.g. MESSENGER (Facebook Page), INSTAGRAM or LINKEDIN. Omit for a text that works on several platforms. | |
| maxLength | No | Character limit to stay within, e.g. 280 for X. | |
| instruction | No | WRITE: what the post is about. SHORTEN, REWRITE: how to change the text, e.g. "more casual". | |
| organizationId | Yes | The organization id. Use organization_list to find it. |