Set Task Scope
set_task_scopeDeclare or clear the file scope of your task to let ThumbGate compare changes against allowed paths and block unauthorized actions.
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 |
|---|---|---|---|
| clear | No | Clear the current task scope instead of setting one | |
| taskId | No | Optional stable task identifier (ticket, issue, or work item id) | |
| summary | No | Short summary of the task being worked | |
| repoPath | No | Optional repo root used when evaluating git diff scope | |
| localOnly | No | When true, also marks the task as local-only | |
| 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. |