Application Context

The AppContext object is the runtime boundary between a plugin and the host.

Available Services

context.datasets
context.selection
context.events
context.artifacts
context.jobs
context.workspace
context.services
context.plugins
context.persistence
context.navigation
context.runtime_status

Accessing Data

Use context.datasets to find the active dataset or retrieve a source.

Accessing Focus

Use context.selection rather than reading another panel.

Submitting Work

Use context.jobs for slow or cancellable work.

Looking Up a Service

client = context.services.get("astro.example.client")