sync
Family: Project utilities — init, validate, sync, regenerate, doctor, tree, version. See Project utilities.
Sync project with remote.
@mcp.tool()
def sync(
dir: str,
ours: bool = False,
with_code: bool = False,
) -> str
Parameters
| Name | Type | Required |
|---|---|---|
dir | str | yes |
ours | bool | no (default False) |
with_code | bool | no (default False) |
Returns str.
Call shape
Fill your values; omit optional parameters:
{
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"name": "sync",
"arguments": {
"dir": "...",
"ours": false,
"with_code": false
}
}
}