diagram_file
Loads a rendered diagram's SVG or graph JSON contents from a given path so the TerraVision view can display it.
Instructions
Return a rendered diagram file's contents to the TerraVision view.
Used by the diagram view in chat apps to load the SVG and the graph JSON. Agents do not need it: read the paths in the result yourself.
Args: path: A path from the "files" of a diagram result.
Returns: {"name", "mimeType", "text"} for text files, or {"name", "mimeType", "blob"} with base64 content.
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": {
"path": "<path>"
},
"name": "diagram_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |