task_item
Update a task item's text, state, comment, or linked memories, or delete it, to keep MemAI task records accurate across sessions.
Instructions
Update one item of a task -- its text, its state, a comment on it, memories linked to it -- or delete it.
Give at least one of text, state, comment and related, or delete. They apply together, or not at all.
The result names the item's number n and the task's title.
Free text cites another item only as [[#id]], which reads back as its current number and label; a label -- a title, an item's text -- never carries one. To a person, name it item n of its task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uid | Yes | the task. | |
| item | Yes | the item's id, as task_read(part='items') lists it. | |
| text | No | the item's new text, a short label as task() takes it. The item keeps its id, state, brief, comments and links; the previous text stays in the edit history. | |
| state | No | todo, doing, done or dropped. The write that closes the last open item archives the task (`archived` in the result); one that reopens an item reopens the task. | |
| delete | No | removes the item with its comments, links and note attachments, alone in its call. No other item moves; a DEPENDS ON that named it keeps its text, marked deleted, and a brief on only that item stays, on the whole task. Delete a mistake or a duplicate; mark work decided against as dropped, which keeps it. | |
| comment | No | a remark on this item -- what blocked it, what was decided. | |
| related | No | comma-separated uids of memories this item produced or depends on. An unknown uid refuses the whole call, and nothing is written. |