Write a work-state list
work_state_writeSave and replace a named project to-do or scratch list; send the complete list each time to keep task state current.
Instructions
Save a named to-do or scratch list for a project. Writing an existing name replaces all its items, so send the full list each time; read it back with work_state_read. Use this for running task state, and save_memory for durable facts. Returns "Saved list ..." for a new list or "Updated list ..." for a replaced one; a blank name or non-array items is an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| list | Yes | List name, such as "todo". Names are matched exactly after trimming. Required. | |
| items | Yes | The complete new list: strings, numbers, booleans or plain objects, for example ["ship", {"task": "test", "done": false}]. Replaces any earlier items. Required. | |
| project | No | Project key the list belongs to. Default: the project of the server's working directory, else "default". Lists are separate per project. |