take_photo
Use the phone camera to capture a photo, selecting back or front camera and saving to a specified file path.
Instructions
Take a photo using the phone camera.
Args: camera_id: Camera ID - '0' for back camera, '1' for front camera output_path: Where to save the photo
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": "take_photo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| camera_id | No | 0 | |
| output_path | No | /data/data/com.termux/files/home/photo.jpg |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |