Create a format
create_text_template[writes flayr data · write scope] Creates a reusable format (text template) in a brand.
(Wraps POST /api/v2/text-templates.)
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": {
"name": "<name>",
"format": "<format>",
"length": "<length>"
},
"name": "create_text_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| format | Yes | ||
| length | Yes | ||
| source | No | Where the shape came from, e.g. an import path. | |
| useFor | No | One line: when to pick this format. | |
| brandId | No | ||
| example | No | ||
| ctaSlots | No | ||
| platform | No | e.g. "linkedin"; null = any platform. | |
| sections | No | In order. "Start from a format" writes one `[you fill: Label — guidance]` placeholder per section. | |
| guardrails | No | ||
| maxHashtags | No | ||
| hookPatterns | No | "[slot]" placeholders are kept as written. | |
| defaultLabels | No | "key:value" labels every draft started from this format gets (plus the format's own `label`). |