Browse documentation

sync

[solution]

Synchronizes pending watcher changes or selected files into the loaded workspace.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathsjsonNoOptional array of file paths to sync.

Examples

Replace sample paths and symbol keys with values from your workspace.

Sync one edited file

Arguments
{
  "filePaths": [
    "src/app.ts"
  ]
}
Full MCP request
Full MCP request
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "sync",
    "arguments": {
      "filePaths": [
        "src/app.ts"
      ]
    }
  }
}

Response Notes

Returns sync status and workspace revision. After a watcher failure, pass explicit filePaths to refresh selected disk changes. Pending watcher changes are discarded on failure. A sync does not restart the watcher or clear watcherError.