diagram_sync
Re-fetch mapped GitHub paths and append a version if they changed.
No-op when commit + content hash match. mode=authored is refused
unless force=true (then the new version is mode=generated).
No webhook or periodic worker — call this when you want a refresh.
teamshared.diagram/v2 scenes are authored, so this returns
changed=false, reason='scene' instead of overwriting them.
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": {
"file_id": "<file_id>"
},
"name": "diagram_sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | No | Override source.ref (defaults to the document's stored ref) | |
| agent | No | Override agent identity | |
| force | No | Overwrite an authored diagram. Generated diagrams sync without this; authored mode is never overwritten unless force=true | |
| file_id | Yes | Existing diagram shared-file UUID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||