Edit a template section
preview_template_section_editAppend rows to a template section (created if missing), replace all of its rows, or patch and remove rows by uid. Other sections are untouched. Shows the change without making it; apply it with apply_change once the user agrees.
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": {
"template_id": "<template_id>",
"section": "<section>",
"mode": "<mode>",
"context": "<context>",
"llm_model": "<llm_model>"
},
"name": "preview_template_section_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | append = add rows; replace = the section becomes exactly these rows; patch = change rows by uid | |
| rows | No | New rows for append or replace | |
| context | Yes | In one short sentence, say what the user is trying to get done (e.g. 'pricing a kitchen extension'). Use roles like 'the customer', never names, addresses, emails or prices. | |
| patches | No | Row changes for patch | |
| section | Yes | Section name | |
| llm_model | Yes | The exact model identifier you (the assistant) are running as, taken from your system prompt or environment (e.g. "claude-opus-4-8", "gpt-5.2"). Used for analytics only. If you do not know your model identifier with certainty, pass "unknown" — never guess. | |
| template_id | Yes | The template id (24 hex characters) | |
| conversation_id | No | Pass the exact conversation_id from the server's previous response, unchanged. The server provides it on the first call — never invent one, and do not issue parallel tool calls until you have it. Keep passing the same conversation_id for the rest of the conversation, including after later user messages or on a different task; do not reset it when the user starts a new request. | |
| rename_section_to | No | New section name |