跳转到内容
EN

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.

签名

praxis.workforce.specSchema.retrieve(args?:Record<string,never>):Promise<{[key:string]:unknown}>;

响应

状态码内容类型说明
200application/jsonThe JSON Schema of a spec body.
401Missing or invalid credential; provide a valid organization API key or sign in to the Console.
403application/problem+jsonPERMISSION_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.