write_sandbox_file
Write a PHP file into the Keelhob sandbox so custom hooks and functions persist; content is syntax-checked before disk and runtime-fatal files are quarantined.
Instructions
Write a PHP file into the Keelhob sandbox (wp-content/keelhob-sandbox). Sandbox files are auto-loaded on every request so custom hooks/functions persist. Content is syntax-checked before it touches disk (rejected on a parse error, nothing written); a file that still fatals at runtime for some other reason is auto-quarantined on the next request so the site stays up. Include the opening <?php tag.
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": "write_sandbox_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | Full PHP file contents, including <?php. | |
| filename | Yes | File name, e.g. my-feature.php |