Update a format
update_text_template[writes flayr data · write scope] Changes a format; only the fields you pass change. archived: true hides it.
(Wraps PATCH /api/v2/text-templates/{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": {
"id": "<id>"
},
"name": "update_text_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | No | ||
| format | No | ||
| length | No | ||
| source | No | Where the shape came from, e.g. an import path. | |
| useFor | No | One line: when to pick this format. | |
| example | No | ||
| archived | 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`). |