Create a Garphield graph
garphield_createCreate a stored graph document from data and return its reference (doc). Pass exactly one of: graph (node-link JSON: nodes [{id, ...attributes}] and edges [{source, target, ...attributes}]), table (CSV text for links, optionally nodes), file (a GEXF, GraphML, GML, node-link JSON, edge list, Matrix Market, graph6 or .gph text), or url. url fetches from three public sources only, and refuses every other site: a file on GitHub (raw.githubusercontent.com, a github.com///blob/... page, or a gist's raw link), a Google Sheet shared with anyone with the link or published to the web, or a table on a Wikipedia article (.wikipedia.org/wiki/; url.wikitable picks which). For a table, name the link columns with url.source and url.target. The result lists the bindable fields with their ids and types, the names a binding accepts.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "garphield_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Data fetched from a public link. A table's columns match case-insensitively; when source or target is missing, the error lists the columns. | |
| file | No | A graph file in a format the workbench opens (not DOT). | |
| name | No | Title shown in the workbench and in share previews. | |
| graph | No | Node-link JSON. Nodes named only by a link are created. Ids are stored as strings. | |
| table | No | Tables as text. Columns match case-insensitively; numeric cells become numbers and blank cells stay missing. |