sync_connected
Uploads current matching files using an existing Code Sync connection after edits, including local additions and deletions; clears remote scripts if none remain. Requires active connection.
Instructions
Upload the current matching file set using the existing Code Sync connection. Inputs: none. Requires an active connection established by connect_sync, sync_directory, or force_sync_directory. Reuses its in-memory token, directory, and glob. Effects: uploads current matching files, including local additions and deletions, and updates last-sync status; if no files remain, clears remote scripts with the empty .lua payload, regardless of the initial connection's allow_empty value. Does not create a probe or change watcher settings. Returns upload status, file details, and connection status. Fails if no active connection exists.
Context: Choose for an immediate manual upload after editing an already-connected project. Use sync_status to inspect that connection. To change token, folder, glob, or watch, call connect_sync or sync_directory instead. Connected watcher uploads also permit clearing the remote set after the final matching file is deleted. Does not validate Lua or retrieve remote editor state.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sync_connected"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||