phone.get_actions
Overview
- Lists what smartphone apps can do through the CLI and which command does it. Call that command directly, or call phone.invoke with the same app and action. app_id follows phone.list_apps. Only PocketMarket purchase_service is available for now.
Metadata
| Field | Value |
|---|---|
| Display | Get Phone App Actions |
| Category | phone |
| Access | Public |
| Scope | B2Authority |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app | string | no | — | App id from phone.list_apps, e.g. PocketMarket. Omit for all apps |
Returns
Returns a JSON object with the following fields:
| Field | Type | Required | Description |
|---|---|---|---|
count | int | yes | Number of actions returned |
actions | array<object> | yes | Available actions |
actions[].app_id | string | yes | App id, same as phone.list_apps |
actions[].action | string | yes | Action name to pass to phone.invoke |
actions[].command | string | yes | CLI command that performs the action |
actions[].params | string | yes | Parameters the command takes |
actions[].description | string | yes | What the action does |
Usage
await inzoi.cli.execute('phone.get_actions', {
app: '', // optional
});