Overview

Developer

The programmatic surfaces: what you can call, what you can implement, and what comes back.


PageCovers
Apex APIEntity, EntityRequest, EntityFindRequest — calling the engine
Provider SPIEntityEnrichmentProvider, EnrichmentItem — extending it
Invocable actionsThe three shipped actions and every input
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 itself it is omitted.

API stability

The classes and methods documented here are global — a permanent, deprecation-only surface once the first released package version is installed anywhere. Two caveats while the package is pre-1.0:

  • The JSON payload schema is versioned 0.1-beta and becomes additive-only once stable. Read schemaVersion if you parse it 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 surface is the contract

What’s next