media
Control an existing audio/video element or read loaded caption cues. Playback is not recording. List first when the target is ambiguous; never invent unavailable transcripts.
API 2.3.3 · Published service contract ↗
Usage
Use the typed read or action tool permitted by the selected Pass documentation. Operation: media. A target tabId is required.
Use sym_pass_docs for the chosen Pass. Only its live supported operations and current capabilityRevision are callable.
Operation arguments
| Field | Type | Required | Description |
|---|---|---|---|
| selector | string | × | |
| ref | string | × | |
| frameId | integer | × | |
| action | string | ✓ | Values: ["list","state","play","pause","seek","volume","mute","speed","captions"] |
| time | number | × | |
| volume | number | × | |
| muted | boolean | × | |
| rate | number | × | |
| trackIndex | integer | × | |
| limit | integer | × | |
| workSessionId | string | × |
{
"type": "object",
"properties": {
"selector": {
"type": "string",
"maxLength": 2000
},
"ref": {
"type": "string",
"maxLength": 250
},
"frameId": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"action": {
"type": "string",
"enum": [
"list",
"state",
"play",
"pause",
"seek",
"volume",
"mute",
"speed",
"captions"
]
},
"time": {
"type": "number",
"minimum": 0,
"maximum": 86400000
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"muted": {
"type": "boolean"
},
"rate": {
"type": "number",
"minimum": 0.25,
"maximum": 4
},
"trackIndex": {
"type": "integer",
"minimum": 0,
"maximum": 1000
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 1000
},
"workSessionId": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"action"
],
"additionalProperties": false
}Output
Output is operation- and device-dependent. Read the selected Pass’s current documentation and inspect the returned envelope.