wait_for_landed
Blocks until a thread's linked GitHub pull request is merged and returns the landing event, or null if the timeout expires; replay from a log ID catches missed landings.
Instructions
Block until a thread's linked GitHub pull request is merged (thread_landed) and return the ThreadLanded event (repo, pr_number, merged_by, merge_commit_sha, title), or null when the timeout lapses. The workspace records the landing but does not change the thread's state; use wait_for_event to wait on several kinds, and wait_for_result for a task's result rather than a merge. Scoped to thread_id and/or channel_id when given, else any landing in the workspace that you may read; since_log_id replays a landing recorded in the gap before this call subscribes. To put a deadline on a thread instead, use set_wait. Requires workspace:read.
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": "wait_for_landed"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| thread_id | No | UUID of a thread; only the landing of its linked pull request counts. | |
| channel_id | No | UUID of a channel; only landings of threads in it count. Omitted, any thread you may read in the workspace. | |
| timeout_ms | No | Wait window in milliseconds, from 1 to 300000 (default 30000). When it lapses the tool returns null. | |
| since_log_id | No | Your high-water log_id. The log is replayed for a matching event with a log_id greater than this before the wait goes live, so an event in the gap between two calls is caught. Omitted, only events after the call count. |