Error state skeleton
error_state_writer_templateAssemble error message skeletons. Give problem (what happened, required), and optionally cause, fix (the next step), where (field or page), severity (blocking, recoverable, warning), dataSaved (yes if the user's work is safe), canRetry and contact. Returns three layouts (inline under a field, banner or toast, full-page with title, body and buttons) built from your wording with square-bracket placeholders where you gave nothing, plus flags: blame words (invalid, wrong, you failed), technical codes, cute openers, missing next step, fix not starting with a verb, length limits, missing way to reach a person on blocking errors. It does not write the copy for you.
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": {
"problem": "<problem>"
},
"name": "error_state_writer_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | What the reader can do next | |
| cause | No | Why, only if the reader can use it | |
| where | No | Field or page | |
| contact | No | Support channel, e.g. support | |
| problem | Yes | What happened, in plain words | |
| canRetry | No | yes if trying again can work | |
| severity | No | blocking, recoverable or warning | |
| dataSaved | No | yes if the user's work is safe |