save_system_prompt_template
Save system prompt templates with a name for UI dropdown access. Use at session startup for .txt files and after optimization loops to preserve the best prompt.
Instructions
Save a named system prompt template so it appears in the UI "Load template…" dropdown.
Call at session startup for every .txt file in prompt-lab/system-prompts/: save_system_prompt_template(name=, content=)
Also call after a successful optimization loop to preserve the best prompt found.
Templates persist in Redis. Saving with the same name replaces the previous version.
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": "save_system_prompt_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Template name (shown in UI dropdown) | |
| content | Yes | System prompt text |