view_image#
Build typed tools from annotations and docstrings. See the guide.
View a PNG, JPEG, GIF, or WebP from a local path or HTTP(S) URL.
Parameters#
{
"additionalProperties": false,
"properties": {
"path": {
"title": "Path",
"type": "string",
"description": "HTTP(S) URL, absolute path, or path relative to the current working directory."
},
"max_bytes": {
"default": 10000000,
"maximum": 20000000,
"minimum": 1,
"title": "Max Bytes",
"type": "integer",
"description": "Maximum encoded image size; oversized files are rejected."
}
},
"required": [
"path"
],
"title": "ToolInput",
"type": "object"
}
Model-facing snippet#
view_image(path="https://example.com/chart.png")
Guidelines#
Use this tool to inspect screenshots and images with a vision-capable model.
Use read_file for text. PDF and SVG files are not supported by this tool.
Remote images must use HTTP or HTTPS and are downloaded with redirects enabled.
Images are returned intact; resize large images before viewing them.
- zett_agent.tools.images.view_image#
A tool is a name, an input schema, and an async callable.
- Parameters:
arguments (Mapping[str, Any])
- Return type:
Direct Python calls use await tool(arguments_mapping). The snippet
above describes model-facing invocation syntax, not the Python call signature.