Set Task Scope
set_task_scopeDeclare or clear the task scope with allowed and protected file paths, enabling ThumbGate to restrict file edits and diffs to the approved set.
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 | |
| workflowContract | No | Optional deterministic workflow run contract. Supports workflowId, allowedBranches, blockedActions, requiredEvidence, and completionGate. | |
| 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 |