Overview

Developer

The developer-facing parts of ContextWorks: what you can call, what you can implement, and what comes back.


PageCovers
Apex APIEntity.load, find, loadMany, write, create — calling the engine
Provider SPIEntityEnrichmentProvider, EnrichmentItem — extending it
Invocable actionsThe eight runtime actions and every input, plus the seven administration actions in summary
JSON payload schemaKey by key, for parsing
Query filtersFilter syntax, operators, date literals

Namespace

The package namespace is ctxl. Reference package classes from your own code as ctxl.ClassName:

String context = ctxl.Entity.load(recordId);

Examples in this section include the prefix. Inside the package, drop it.

API stability

The classes and methods documented here are global. Once the first released package version installs anywhere, they freeze: a global member can be deprecated, never removed or changed. Two caveats while the package is pre-1.0:

  • The JSON payload schema carries schemaVersion 0.1-beta. It becomes additive-only once stable, so read that key if you parse payloads in production.
  • The global surface is provisional until the freeze review before the first released version. Beta versions may still change it.

Anything not documented here is internal and may change without notice.

What’s callable from where

FromUse
ApexEntity directly
Flow, Prompt BuilderThe invocable actions, or your own invocable over Entity
AgentforceAgent actions over the invocables
MCPTools over the invocables
Another packagectxl.Entity — the global classes are the contract

What’s next