draft_file
Generate new file drafts by analyzing user intent and local code patterns to create structured content without writing files.
Instructions
Generate a new file draft from intent and local patterns. Does not write files.
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": {
"file_path": "<file_path>",
"intent": "<intent>"
},
"name": "draft_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Intended file path for the new file | |
| intent | Yes | What should this file do? | |
| similar_files | No | Example files to match style (optional) | |
| template | No | Template or structure to follow (optional) |