Save a prompt word for word
cortex_save_promptSave a prompt, startup script, or template so the user can call it back later by typing #handle. It is stored exactly as given, character for character; never summarize or reformat it. It is staged for the user's review and served only after they approve it in the Myeline workspace. Saving a different text under an existing handle proposes a new version of that prompt; approval retires the previous version from serving, and the retired version stays on record in the workspace — nothing is ever deleted by this tool, and any version's text can be read back from its history. Retiring a prompt altogether, so its handle stops serving, is the user's own act in the Myeline workspace; no AI tool does it. Live secrets (API keys, passwords) are refused; reference environment variables instead.
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": {
"handle": "<handle>",
"body": "<body>"
},
"name": "cortex_save_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | Yes | The full text, exactly as it should come back. Include every line. | |
| title | No | Optional one-line description shown in prompt menus, e.g. 'Start a session on the reponame repo'. | |
| handle | Yes | The short name to call it by: letters, numbers and dashes, e.g. reponame-startup. The user will type #reponame-startup. |