write_file
Create or fully overwrite a UTF-8 text file on a WISP game server filesystem; use for deliberate full replacements, not concurrent edits.
Instructions
Create or fully overwrite a text file. Use for new files or deliberate full replacement; it mutates filesystem state, requires WISP_ALLOW_FILE_WRITES, and does not protect against concurrent edits.
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 | Path in the selected server filesystem, starting from its root. | |
| content | Yes | Complete UTF-8 text content to create or overwrite. | |
| server_id | No | Wisp server ID. Omit to use the configured WISP_SERVER_ID default. |