modify_file
Edits an existing file on the HexStrike server by overwriting or appending content, enabling controlled file updates during security testing workflows.
Instructions
Modify an existing file on the HexStrike server.
Args: filename: Name of the file to modify content: Content to write or append append: Whether to append to the file (True) or overwrite (False)
Returns: File modification results
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": {
"filename": "<filename>",
"content": "<content>"
},
"name": "modify_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| append | No | ||
| content | Yes | ||
| filename | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |