Skip to main content

Interface: AppContext

Defined in: packages/sdk/src/app-context.ts:66

App context provided to AI assistants

This represents the current page/state the user is in, allowing the AI to provide context-aware assistance.

Properties

appUri?

optional appUri: string

Defined in: packages/sdk/src/app-context.ts:68

Current page URI (e.g., 'app:page:workflows/123')


autoApprove?

optional autoApprove: boolean

Defined in: packages/sdk/src/app-context.ts:74

Auto-approve all tool calls without HITL interruption


deepThink?

optional deepThink: boolean

Defined in: packages/sdk/src/app-context.ts:77

Enable deep thinking mode for the current session


pageState?

optional pageState: object

Defined in: packages/sdk/src/app-context.ts:83

Additional structured page state

Index Signature

[key: string]: any

Any other page-specific state

dataRecord?

optional dataRecord: DataRecordContext

Data record being viewed/edited

openDrawers?

optional openDrawers: string[]

Open drawers/modals

page?

optional page: PageContext

Page being viewed/edited

routeParams?

optional routeParams: Record<string, string | string[]>

Route parameters from Next.js

selectedTabs?

optional selectedTabs: string[]

Selected tabs

site?

optional site: SiteContext

Site being viewed/edited

toolkit?

optional toolkit: ToolkitContext

Toolkit being viewed

workflow?

optional workflow: WorkflowContext

Workflow being viewed/edited


pageUrl?

optional pageUrl: string

Defined in: packages/sdk/src/app-context.ts:71

Current browser URL for linking back to this page


pendingSetupSpecIds?

optional pendingSetupSpecIds: number[]

Defined in: packages/sdk/src/app-context.ts:80

Setup spec IDs linked to the current workspace that are pending execution.