create_prompt_partial
Creates a reusable prompt partial for shared snippets or macros, returning its ID, slug, and version ID; new versions stay inactive until published.
Instructions
Create a reusable prompt partial for inclusion with {{> partial_name}}. Use this for shared snippets or macros; returns the partial id, slug, and version id, and the new version stays inactive until published.
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>",
"string": "<string>"
},
"name": "create_prompt_partial"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Display name for the partial | |
| string | Yes | The partial content/template string | |
| workspace_id | No | Workspace ID to create partial in (required for org-level API keys) | |
| version_description | No | Description for this version |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |