sync_start
Start live-syncing changes from a local host directory to a sandbox directory. Performs an initial full sync and continuously polls for updates every second, automatically ignoring .git, node_modules, and other common directories.
Instructions
Start watching a local host directory and live-syncing changes into the sandbox. Does an initial full sync, then polls for changes every second. Ignores .git, node_modules, pycache, .venv, .DS_Store.
Args: local_dir: Absolute path on the host to watch. sandbox_dir: Destination directory in the sandbox (default: /workspace). sandbox: Named sandbox to sync to (default "default")
Returns: Sync job ID and initial sync stats.
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": {
"local_dir": "<local_dir>"
},
"name": "sync_start"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| local_dir | Yes | ||
| sandbox_dir | No | /workspace | |
| sandbox | No | default |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |