write
Write files with code, preventing duplicate code by blocking identical AST structures and warning on similarity.
Instructions
Write file. Blocks if duplicate exists, warns on similarity.
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>",
"content": "<content>"
},
"name": "write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Code to write | |
| file_path | Yes | Absolute file path |