vision_from_resource
Fetch any URL resource—text, image, audio, or video—and use Gemini to describe its content based on your instructions, providing a clear answer for any media type.
Instructions
Describe a URL resource using Gemini.
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": {
"type": "<type>",
"prompt": "<prompt>",
"resource": "<resource>"
},
"name": "vision_from_resource"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Media category — text, image, audio, or video. | |
| prompt | Yes | Instructions to the model (what to describe/extract). | |
| compact | No | If true, compact history and reconnect after this request. | |
| resource | Yes | URL to fetch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |