feature_spec_sync
Returns the context for updating a feature's spec from its tasks: feature.spec, tasks[].spec and tasks[].result in one batch plus the workspace's spec-update guidelines (instructions); writes nothing. includeTaskIDs adds full contexts with chats of tasks with discrepancies. mode=analyze - differences and a full new version without saving; mode=apply - when the user asks to apply the update.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Feature key #F12 (or F12, 12); not with featureID | |
| mode | Yes | analyze - propose without saving; apply - the user asks to apply | |
| basis | No | actual (default) - actual state from the tasks; requirements - confirmed in chats | |
| chatLimit | No | Latest messages per full context, 1-100; older via chat.before | |
| featureID | No | Feature ID; not with key | |
| taskTypes | No | Task and bug types to include; default frontend, backend, fullstack, design | |
| includeTaskIDs | No | Tasks with discrepancies to add with full context and chat, up to 20; requires taskTypes, the same as in the previous response |