Edit a file
fs_editReplace an exact string in a file. old_string must match exactly once (include surrounding lines to make it unique) unless replace_all is set. Fails without changing anything if it is not found.
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": {
"project": "<project>",
"path": "<path>",
"old_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "fs_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path starting with "workspace/" (the code, /workspace) or "data/" (runtime files, /data). | |
| project | Yes | Project slug or id. | |
| new_string | Yes | ||
| old_string | Yes | ||
| replace_all | No | ||
| idempotency_key | No | Any unique string; repeating a call with the same key does not repeat its effect. |