wait_for_file_change
Waits up to 30 seconds for a document version change and returns new content, or changed:false on timeout; disconnections are reported explicitly.
Instructions
Wait for a document version to change, up to 30 seconds. Returns the new content, or changed:false on timeout. Disconnections are reported explicitly.
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": {
"projectId": "<projectId>",
"path": "<path>",
"afterVersion": "<afterVersion>"
},
"name": "wait_for_file_change"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| projectId | Yes | ||
| afterDocId | No | Document ID from the previous read; detects replacement of the file at the same path. | |
| afterVersion | Yes | ||
| timeoutSeconds | No |