write_webroot_js
Writes JavaScript files into the WebRoot folder for built Banter scenes, enabling browser runtime logic using the BS.* API.
Instructions
Write JavaScript code to the WebRoot folder for built Banter scenes. This JS runs at runtime in the browser context.
Use BS.* API for all Banter functionality.
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": {
"code": "<code>",
"filename": "<filename>"
},
"name": "write_webroot_js"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | JavaScript code to write | |
| filename | Yes | Filename (e.g., 'main.js', 'game-logic.js') |