write_file
Create or overwrite a text file within the sandbox root. Requires write permission enabled on server start.
Instructions
Create or overwrite a text file inside the sandbox root.
Disabled unless the server was started with AB_MCP_ALLOW_WRITE enabled.
Args: path: File path relative to the root. content: The full text to write.
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>",
"content": "<content>"
},
"name": "write_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| content | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |