Usage explains the canonical invocation.
()
| 142 | |
| 143 | // Usage explains the canonical invocation. |
| 144 | func (*BuiltinGraphViewPlugin) Usage() string { |
| 145 | return `<tool_call name="@graphview" args='{"title":"Our chat","nodes":[{"id":"a","label":"Auth","kind":"topic"},{"id":"b","label":"OAuth","kind":"topic"}],"edges":[{"source":"a","target":"b"}]}' /> |
| 146 | |
| 147 | Flags (flat JSON or {"cmd":"render","args":{...}} envelope): |
| 148 | source json (default) | knowledge | conversation |
| 149 | nodes [{id,label,kind?,summary?,weight?}] (source=json) |
| 150 | edges [{source,target,weight?}] (source=json) |
| 151 | file path to a JSON file holding {nodes,edges} instead of inline |
| 152 | title graph title shown in the toolbar |
| 153 | theme dark (default) | light |
| 154 | output path to write the .html (default: a temp file) |
| 155 | open true (default) | false — open the result in the browser |
| 156 | |
| 157 | Renders an interactive force-directed graph (drag/zoom/pan/search/filter) to a |
| 158 | self-contained HTML file and opens it. To graph the conversation, pass the |
| 159 | entities and relations you extracted as nodes/edges with source=json.` |
| 160 | } |
| 161 | |
| 162 | // Version is semver. |
| 163 | func (*BuiltinGraphViewPlugin) Version() string { return "1.0.0" } |
no outgoing calls