execute_script
Run AutoX.js scripts on Android devices to automate tasks, with options for delayed execution, looping, and interval control.
Instructions
Execute an AutoX.js script
Args:
script (str): Script content to execute (optional)
path (str): Local script path on device (optional, takes priority over script)
delay (int): Delay before execution in milliseconds (default: 0)
interval (int): Interval between loop iterations in milliseconds (default: 0)
loop_times (int): Number of times to loop (default: 1, 0 for infinite)
Returns:
str: Success or error message
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "execute_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | No | ||
| path | No | ||
| delay | No | ||
| interval | No | ||
| loop_times | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |