ai_ui_eval
Evaluate JavaScript in the live MIT App Inventor page to run custom editor interactions; available only when the server starts with AI2_ALLOW_EVAL=1.
Instructions
Escape hatch: evaluate JavaScript in the App Inventor page. Disabled unless the server was started with AI2_ALLOW_EVAL=1, because it runs arbitrary code in a signed-in session.
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": {
"script": "<script>"
},
"name": "ai_ui_eval"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | JavaScript expression |