flipper_js_run
Run JavaScript programs on a Flipper Zero via the mJS engine and get the script output back, enabling on-device automation of GUI, GPIO, serial, storage, notifications and BadUSB.
Instructions
Run a JavaScript program on the Flipper (mJS engine) and return its output.
Full on-device automation: gui, gpio, serial, storage, notify, badusb, etc.
The script is written to /ext/.tmp and executed with the js command.
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": "flipper_js_run"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |