edit_workspace_file
Apply an AI co-pilot edit to a workspace file.
Args:
file_id: UUID of the file.
instruction: Natural language instruction describing the desired edit.
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_id": "<file_id>",
"instruction": "<instruction>"
},
"name": "edit_workspace_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | ||
| instruction | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |