template_extract
Extract a reusable content template from any post text. Optionally save it to your brand's template library for future use.
Instructions
AI extracts a reusable content template from a pasted post text. Synchronous (seconds) — no polling needed. Pass save=true to also persist the template to the brand's library. Returns the extracted template object; if saved, includes the new template id.
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": {
"postText": "<postText>"
},
"name": "template_extract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| save | No | When true, the extracted template is saved to the brand's template library. | |
| brandId | No | Brand ID (defaults to active brand) | |
| postText | Yes | The full text of the post to deconstruct into a reusable template (min 10 chars). |