Record external wait in visible plan
record_external_wait_in_planGeneric factual plan helper for the moment after a domain tool starts asynchronous work and returns a real externalWaitId. Identity and revision come from that stored hook wait; pass externalWaitId instead of copying externalKind, externalId, revisionId, or sourceExternalId. Legacy identity fields are optional assertions and must match the stored record. It completes the current visible item and turns waitingItemTarget into the waiting row, reusing that row's label and completion criteria when waitingItem is omitted, or appends one waiting row only when that future work is not already visible. waitingItemTarget must identify a distinct later row; omit it when waitingItem defines a new row. If both targets accidentally identify the current row and a complete waitingItem is supplied, the helper safely appends that new row after the current item. It carries the returned facts without matching or interpreting item labels. It does not start, stop, retry, interpret, or otherwise change external work. Do not call it when the domain tool failed or returned no externalWaitId.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| planId | No | Optional plan UUID. In the current conversation, omit planId unless you already have the actual plan id from get_active_plan or a wake message. Never pass a plan item id here; target plan items through target.itemId or target.position. | |
| evidence | No | ||
| externalId | No | Optional assertion against the stored hook identity. Prefer externalWaitId alone. | |
| revisionId | No | ||
| waitingItem | No | Waiting-row fields for a newly inserted row or intentional overrides for a distinct existing waitingItemTarget. When this defines a new row, omit waitingItemTarget. Omit waitingItem when waitingItemTarget already identifies the complete future row. | |
| externalKind | No | Optional assertion against the stored hook identity. Prefer externalWaitId alone. | |
| conversationId | No | Optional conversation UUID. Omit this field to use the current MCP conversation context; never pass placeholders such as `current`. | |
| externalWaitId | Yes | The durable external wait id returned by the same domain-tool result. | |
| sourceExternalId | No | ||
| currentItemTarget | No | The visible plan item advanced by the domain tool. Omit to use the current actionable item. | |
| waitingItemTarget | No | An already-visible future plan item that should become the waiting row. It must be strictly after currentItemTarget and must not identify the same item. Omit it when waitingItem defines a new row to insert. | |
| currentItemOutcome | No | ||
| currentItemEvidence | No |