contextCorrect
Correct a wrong item surfaced in a cold-start brief by passing its id and corrected text; the brief shows your replacement, preserving history with the latest correction winning.
Instructions
Correct a wrong item the cold-start brief surfaced. Pass the item's id (a pin's contextPins/{uid}, or an entities/{uid} the brief showed) and the corrected text; the brief renders your text in its place. The correction is a NEW event, not an in-place edit — history is preserved and the latest correction wins. Returns the overlay's contextPins/{uid}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | The corrected text to show in place of the surfaced item. Required, non-empty. | |
| scope | No | Scope to write into; match the scope the corrected pin lives in. Defaults to personal ("project" = this repo; "team" requires admitted membership, else E_PERMISSION). | |
| targetId | Yes | Id of the item to correct: a contextPins/{uid} (or bare ULID) of a pin shown in the brief, or an entities/{uid} surfaced in it. The brief renders this corrected text in the item's place. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | AIP resource name of the correction overlay; retire it with contextUnpin. | |
| status | Yes | Always "corrected" on success. |