Replace a card body
project_card_writeReplace a card's Markdown body with new full content; an optional revision check prevents overwriting concurrent edits.
Instructions
Replace the Markdown body of a card under the protocol's lock and revision check. Use project_card_note to append instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Card whose body is being replaced. | |
| body | Yes | The complete new Markdown body. This overwrites, so read the card first unless you intend to discard what is there. | |
| expectedRevision | No | Revision string from an earlier read of this record. The write is refused if it no longer matches, so a concurrent edit is reported rather than overwritten. Omit to skip the check. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| record | Yes | A canonical record with its body, revision and reference graph. |