write_recipe
Create or overwrite a Cooklang recipe at a specified path from raw text, using atomic writes to prevent corruption.
Instructions
Create or overwrite a recipe. source is raw Cooklang text.
The parent folder must already exist. A missing .cook extension is added automatically. Writes are atomic (temp file + rename).
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": {
"path": "<path>",
"source": "<source>"
},
"name": "write_recipe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||