deepseek_generate_to_file
Generates code, tests, or fixtures with DeepSeek from instructions and reference files, writes the content directly to a target file in a Git worktree, and returns a short metadata report.
Instructions
Read reference files, generate code/tests/fixtures with DeepSeek directly to output_path inside worktree_root, and return only a short metadata report.
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": {
"output_path": "<output_path>",
"instruction": "<instruction>",
"worktree_root": "<worktree_root>"
},
"name": "deepseek_generate_to_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thinking | No | Optional flag to enable DeepSeek reasoning mode (defaults to false). | |
| input_paths | No | Reference input file paths (absolute or relative to worktree_root). Pass [] when generating from scratch. | |
| instruction | Yes | Detailed generation instructions for the target file. | |
| output_path | Yes | Destination file path inside worktree_root where generated content is written. | |
| worktree_root | Yes | Root directory of the active git worktree; writes outside this root are blocked. |