Add a prompt
add_promptSave a new prompt with a name and content, optionally as a reusable template with variables, so it can be organized and filled at runtime.
Instructions
Add a new prompt. Set isTemplate and variables to make it a template that apply_template can fill. Give id to choose a stable id (it fails if the id is taken); otherwise a random one is assigned. The result says whether the prompt was saved to disk or is kept in memory only.
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>",
"content": "<content>"
},
"name": "add_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Stable id for the new prompt. Left out, the server assigns a random one. | |
| name | Yes | ||
| tags | No | ||
| content | Yes | ||
| category | No | ||
| metadata | No | ||
| variables | No | ||
| isTemplate | No | ||
| description | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| name | Yes | ||
| version | Yes | ||
| persisted | Yes | True when the change was saved to the state directory, false when it is in memory only |