Read the spec schema
Code Mode: praxis.workforce.specSchema.retrieve
HTTP: GET /workforce/v1/spec_schema
Returns the JSON Schema (draft 2020-12) of a spec body, generated from the block registry: document, provision, every block and field under provision, and remove. Each field carries x-praxis-merge (single, set, keyed or layered), x-praxis-merge-key for a set, x-praxis-holders on a block (agent, human), and x-praxis-applied (whether reconcile applies it today), plus a Chinese title and an English description. Read it before writing a spec so a block or field is never guessed. The body is the schema itself, returned without any key renamed. Read-only. Errors: 403 PERMISSION_DENIED for a run or computer token, or a session token that names no agent. Example: GET /workforce/v1/spec_schema.
Signature
praxis.workforce.specSchema.retrieve(args?:Record<string,never>):Promise<{[key:string]:unknown}>;Responses
| Status | Content types | Description |
|---|---|---|
| 200 | application/json | The JSON Schema of a spec body. |
| 401 | Missing or invalid credential; provide a valid organization API key or sign in to the Console. | |
| 403 | application/problem+json | PERMISSION_DENIED; a run or computer token, or a session token that names no agent, is refused. Call with an organization API key, a Console session, or the agent’s own session token. |