act
Control connected devices through shared capability commands covering power, volume, media, navigation, apps, text, touch, and URL/search.
Instructions
Control a device using the shared capability vocabulary.
device is a friendly name or id. capability and action come from this vocabulary (a
device supports the subset listed by devices); args is an object with the named arguments:
power: on (turn the device on); off (turn the device off); sleep (put the device into standby); wake (wake the device from standby)
volume: set (set volume; args: level (0-100)); up (volume up; args: steps (default 1)); down (volume down; args: steps (default 1)); mute (toggle mute)
media: play (resume playback); pause (pause playback); toggle (toggle play/pause); seek (seek relative; args: seconds (negative = back; approximate)); next (next item); previous (previous item); stop (stop playback)
navigate: up (d-pad up; args: times (default 1)); down (d-pad down; args: times); left (d-pad left; args: times); right (d-pad right; args: times); ok (select / enter); back (go back; args: times); home (go to the home screen); menu (open the menu)
apps: list (list launchable apps); open (open an app; args: app (name or package)); close (close an app; args: app (default: the foreground app))
text: type (type text into the focused field; args: text, enter (bool, default false))
touch: tap (tap the screen; args: x, y as fractions of the screen (0-1, top-left is 0,0)); long_press (press and hold; args: x, y (fractions), ms (default 800)); swipe (swipe; args: x1, y1, x2, y2 (fractions), ms (default 300))
open: url (open a URL; args: url, app (optional)); search (search for something; args: query, app (optional))
Actions listed under a device's risky_actions are refused unless the user has clearly said
yes and you pass args.confirm=true.
A device with strict: true is personal (a phone or tablet). On it, never complete anything
that sends a message, makes a call or payment, deletes data or installs an app without first
telling the user exactly what will happen and hearing their yes. touch coordinates are
fractions of the screen, so they match what observe shows whatever its size.
Examples: act("projector", "media", "pause"); act("projector", "volume", "set", {"level": 30});
act("projector", "apps", "open", {"app": "netflix"});
act("projector", "open", "search", {"query": "lofi beats", "app": "youtube"}).
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": {
"device": "<device>",
"capability": "<capability>",
"action": "<action>"
},
"name": "act"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| args | No | ||
| action | Yes | ||
| device | Yes | ||
| capability | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||