sync
For the board's page: send the Excalidraw elements it changed and where its pointer is. With since, also receive the elements changed elsewhere and everyone else's cursors.
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": {
"board": "<board>",
"client": "<client>",
"elements": "<elements>"
},
"name": "sync"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| board | Yes | The board's id, as in its URL. | |
| since | No | ||
| client | Yes | Names the calling page, so that it is not told its own changes. | |
| elements | Yes | ||
| presence | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seq | Yes | Pass as since next time. | |
| epoch | Yes | Changes when the server has lost its boards: send every element again. | |
| cursors | Yes | ||
| elements | Yes |