Skip to main content
GET /schema/{pid} returns only the actions map from a process’s SubstrateState — without the full objects snapshot or probe metadata. Use this endpoint when your agent needs to discover what actions are available for an application, inspect parameter types and reversibility, or build a prompt for a planning step, without paying the cost of a full state read. When you need both state and actions, use GET /state/{pid} instead.

Endpoint

integer
required
OS process ID of the target application. Obtain this from GET /apps.

Response

integer
OS process ID of the queried application.
string
Stable semantic identifier for the application.
string
Human-readable application name.
string
Semantic version of the current action schema (semver). Use this value when submitting corrections via POST /learn/{pid}.
object
Map of action names to their typed schemas. Each entry describes how to call the action.

Examples

When to Use /schema vs /state

/schema returns a significantly smaller payload than /state because it omits the objects map, which can contain hundreds of dot-notation keys for complex applications.

Error Responses