reserve_file
Reserve a file ID to embed in the filename before writing code, enabling consistent tracking across the reserve-write-finalize flow.
Instructions
Reserve a file ID before writing code — part of the mandatory reserve-write-finalize tracking flow. Returns ID to embed in filename.
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>",
"path": "<path>",
"language": "<language>"
},
"name": "reserve_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Preliminary file name (will have _id_xxx appended) | |
| path | Yes | File path relative to project root | |
| language | Yes | Programming language (e.g., 'python', 'javascript', 'typescript') | |
| skip_id_naming | No | If true, skip ID embedding in name (for __init__.py, .db files, MCP tools, or user preference). Sets id_in_name=0 in database. |