media_play_pause
Sends a command to play or pause the current media on a HarmonyOS phone. Controls music or video playback with a single action.
Instructions
Play or pause media on the phone.
Sends the media play/pause keycode to control any currently active media. Can be used to play music or videos that were recently playing.
Returns: str: Success message if the command was sent, or an error message if the command failed.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "media_play_pause"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |