watch_file
Starts monitoring server-pushed changes for a specified project file and returns a resource URI to wait for updates or subscribe.
Instructions
Start watching server-pushed document changes. Use wait_for_file_change or subscribe to the returned resource URI.
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>"
},
"name": "watch_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| projectId | Yes |