Share a Garphield graph
garphield_shareGet links that open a stored graph in the Garphield workbench and in its embeddable view, plus an iframe snippet. Depending on the host the link points at the stored document (anyone with the link can open it, until expiresAt), carries the whole document in the URL (selfContained), or, in the workbench, carries just the view of a built-in sample or generator. Rendering happens in the viewer's browser; a graph without saved positions is laid out when it opens.
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": {
"doc": "<doc>"
},
"name": "garphield_share"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | Yes | Document reference: a stored document id, a file path, or "current" in the workbench. | |
| theme | No | Embed theme. Default: the document's theme, if it has one. | |
| chrome | No | Embed controls to show. Omitted: the embed's defaults. -wordmark takes the link off the Garphield wordmark; the mark stays. | |
| target | No | Which link `url` is: the full workbench ("app", default) or the chromeless embed. |