add_media
Add a photo or video to the Android emulator's media library (Photos/Gallery) using the file's absolute path.
Instructions
Add a photo or video to the device's media library (Photos/Gallery)
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": {
"file_path": "<file_path>"
},
"name": "add_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| serial | No | Device serial (e.g. emulator-5554). Optional when exactly one device is connected. | |
| file_path | Yes | Absolute path to image or video file |