Skip to content

@camera.ui/sdk / plugin / AssistantToolContext

Interface: AssistantToolContext ​

Defined in: plugin/assistant.ts:69

Who is asking and in which language. Passed to every tool call; the host has already enforced adminOnly and approval, the fields are information.

Properties ​

language ​

language: string

Defined in: plugin/assistant.ts:75

BCP 47 language tag of the conversation, for localized text results.


role ​

role: "user" | "admin" | "master"

Defined in: plugin/assistant.ts:73

Role of the user.


threadId? ​

optional threadId?: string

Defined in: plugin/assistant.ts:79

ID of the conversation the tool is called from. Absent for scheduled runs and MCP clients.


timezone ​

timezone: string

Defined in: plugin/assistant.ts:77

IANA time zone of the user, for parsing and formatting times.


userId ​

userId: string

Defined in: plugin/assistant.ts:71

ID of the user talking to the assistant.