route_and_play
Switch macOS audio output to a specified device, then play an audio file or speak text in one atomic operation, with optional volume and restore-device settings.
Instructions
Switch output to a specific device, then play an audio file or speak text. Atomic operation for targeted audio delivery.
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_name": "<device_name>",
"action": "<action>",
"content": "<content>"
},
"name": "route_and_play"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Whether to play a file or speak text | |
| volume | No | Volume level | |
| content | Yes | File path (for play) or text (for speak) | |
| device_name | Yes | Output device to route to | |
| restore_device | No | Device to switch back to after playback |