Skip to main content

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

FieldValue
DisplayGet Phone App Actions
Categoryphone
AccessPublic
ScopeB2Authority
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
appstringno—App id from phone.list_apps, e.g. PocketMarket. Omit for all apps

Returns

Returns a JSON object with the following fields:

FieldTypeRequiredDescription
countintyesNumber of actions returned
actionsarray<object>yesAvailable actions
actions[].app_idstringyesApp id, same as phone.list_apps
actions[].actionstringyesAction name to pass to phone.invoke
actions[].commandstringyesCLI command that performs the action
actions[].paramsstringyesParameters the command takes
actions[].descriptionstringyesWhat the action does

Usage

await inzoi.cli.execute('phone.get_actions', {
app: '', // optional
});