Skip to main content

Type Alias: ToolScope

ToolScope = "admin" | "contractor" | "both"

Defined in: src/server/ai/assistant/tool.ts:16

Read-only tool contract for the Nightingale Assistant (spec R2 §2). Each tool is a thin, typed adapter over an EXISTING service/query function. Identity-scoping (companyId/contractorId) lives ONLY in ToolContext, injected server-side — never in a tool's args — so the model can never widen scope. Tools are pure reads: there is no write tool in the registry.