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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |