Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
Media Control (mediaControl)
| Field | Value |
|---|---|
| Category | android / media |
| Backend handler | plugin server/nodes/android/media_control/__init__.py; dispatch via BaseNode.execute() -> shared AndroidServiceBase.invoke (@Operation("invoke")) |
| Tests | server/tests/nodes/test_android.py |
| Skill (if any) | none |
| Direct agent tool | connectable to any agent's input-tools |
Purpose
Media playback and media-stream volume control. Distinct from
audioAutomation in that it targets the media session / playback APIs rather
than raw stream volumes.
Backend service mapping
| Field | Value |
|---|---|
SERVICE_ID_MAP[mediaControl] |
media_control |
| Default action | volume_control |
Parameters
Shared parameter set only.
Logic Flow (node-specific slice)
flowchart TD
A[Dispatch] --> B[service_id = 'media_control']
B --> C{action}
C -- volume_control --> D[POST /api/media_control]
C -- play --> D
C -- pause --> D
C -- next --> D
C -- previous --> D
D --> E[Flatten data: playback_state, volume, track]
Edge cases & known limits
- Requires
MEDIA_CONTENT_CONTROLor the active notification-listener permission on recent Android for full control; without it only coarse volume actions succeed. - Shared edge cases only otherwise.
Related
- Sibling:
audioAutomation - Shared pattern:
_pattern.md