Wait for changes
wait_for_changesWaits until something changes in one project since your cursor, then returns it like list_changes does; with nothing new after timeout_seconds (default 45, at most 270), it returns no changes and a cursor. For working unattended: handle each change (get_feedback, claim_feedback, fix, submit_resolution), then call it again with the latest next_cursor, at once while has_more is true. A cursor is required: get one from list_changes. Keep timeout_seconds below your client's tool timeout; more than 45 seconds usually needs it raised. One wait per project and connection: a new call ends the earlier one, which returns no changes and says so. Not a metered read.
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": {
"project_id": "<project_id>",
"cursor": "<cursor>"
},
"name": "wait_for_changes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kinds | No | Which changes to return. Default: new, answered, reopened, assigned_to_me, revised. | |
| limit | No | Changes per call (default and maximum 50). | |
| cursor | Yes | next_cursor from list_changes or your previous wait_for_changes call. | |
| project_id | Yes | Project id from list_projects. | |
| session_id | No | Only items of this review session (the developer gives you its id). | |
| include_own | No | Also your own connection's comments, assignments and resolutions. Default false. | |
| timeout_seconds | No | How long to wait for a change, in seconds (default 45, at most 270). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when isError is true: a stable error code (not_found, invalid, conflict_stale, conflict_claimed, conflict_state, quota_exhausted, rate_limited, internal_error) with details such as current_revision/current_version. | |
| changes | No | ||
| has_more | No | ||
| next_cursor | No | ||
| schema_version | Yes |