hpc_edit_file
Replace an exact string in a file in a writable HPC cluster path. Fails if the old string is not unique unless replace_all is true.
Instructions
Replace an exact string in a file in a writable location. Fails if old_string is not unique unless replace_all=true.
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": {
"path": "<path>",
"old_string": "<old_string>",
"new_string": "<new_string>"
},
"name": "hpc_edit_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path on the cluster | |
| new_string | Yes | ||
| old_string | Yes | ||
| replace_all | No |