sync

[solution]

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

Why this tool exists

TypeScript and JavaScript workspaces can contain multiple projects, generated configs, path aliases, and live editor text.

How it helps the agent

The model can load, refresh, and inspect the workspace state it will use for later semantic calls.

Try it locally in the TGlider playground

Parameters

NameTypeRequiredDescription
filePathsjsonNoOptional array of file paths to sync.

Examples

Sync one edited file

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.

↑/↓ NavigateEnter OpenSpace Expand