set_task_scope
Define or clear the approved file scope for a task, allowing ThumbGate to validate file changes and diffs against allowed and protected paths.
Instructions
Declare or clear the current task scope so ThumbGate can compare affected files and diffs against the approved path set.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | No | Optional stable task identifier (ticket, issue, or work item id) | |
| summary | No | Short summary of the task being worked | |
| allowedPaths | No | Glob patterns that define the allowed file scope for this task | |
| protectedPaths | No | Optional protected-file globs that require explicit approval before editing or publishing | |
| repoPath | No | Optional repo root used when evaluating git diff scope | |
| localOnly | No | When true, also marks the task as local-only | |
| clear | No | Clear the current task scope instead of setting one |