call_function
Invoke an exported function from an ES Module on a connected Android or iOS device to observe or control the app, returning the result or error.
Instructions
On the connection instance identified by deviceId and appId, load or reuse a probe ES Module, call one export, and return its result or error with action-scoped evidence.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | Positional arguments passed to the exported function. | |
| appId | Yes | Android package name or iOS bundle identifier. | |
| deviceId | Yes | Canonical ADB serial, CoreDevice identifier, or simulator UDID. | |
| filePath | Yes | Absolute path to a UTF-8 standard ES Module file readable by the MCP server. | |
| functionName | Yes | Name of the function exported by the ES Module. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| result | No | ||
| evidence | Yes | Evidence JSON files, ordered by the first record for each action. |