task_spec_sync
Returns the context for updating a task's or bug's spec: spec, feature, recent chat, a code summary (basis=actual, with git read access) and the workspace's spec-update guidelines (instructions); writes nothing. mode=analyze - for "check, compare, propose" requests (differences and a full new version); mode=apply - when the user asks to update or sync. basis=requirements - "from the chat"; basis=actual - "from the code, as built".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ID | No | Task or bug ID; not with key | |
| key | No | Task or bug number; not with ID | |
| mode | Yes | analyze - propose without saving; apply - the user asks to apply | |
| basis | No | requirements (default) - confirmed in the chat; actual - actual state: code, designs, result | |
| chatLimit | No | Latest chat messages to return, 1-100 (default 20); older via chat.before |