Source Generate
source_generateWrites batches of source files within a workspace, validating paths against the boundary, creating parent directories, and preventing overwrites unless explicitly allowed.
Instructions
Write a batch of source files under the workspace. Every path is validated against the workspace boundary, parent directories are created, and existing files are never overwritten unless explicitly allowed.
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": {
"rootPath": "<rootPath>",
"files": "<files>"
},
"name": "source_generate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Files to write, each with a path relative to rootPath. | |
| rootPath | Yes | Target root directory, relative to the workspace root. | |
| overwrite | No | Allow overwriting existing files (default false). |