## `extract` — the answer as JSON
`extract` asks for the answer shaped as JSON matching a schema you supply, and it replaces the answer: the caller receives the JSON document as the answer's text, never both.
- **Supported subset.** `type` (`object`, `array`, `string`, `number`, `integer`, `boolean`, `null`, or a list of them), `properties`, `required`, `items`, `enum`, `const`, and `additionalProperties` as a boolean. Nested to eight levels — the root is the first, and every `properties` value and `items` node adds one. `$schema`, `$id`, `title`, `description`, `default`, `examples`, `format`, `pattern` and numeric or length bounds are tolerated and ignored.
- **Refused whole, before anything runs.** Anything outside those two lists, in particular references and anything reference-like, `allOf`/`anyOf`/`oneOf`/`not`, `patternProperties`, `propertyNames`, `contains`, `dependencies`, `dependentRequired`/`dependentSchemas`, `unevaluatedProperties`/`unevaluatedItems`, `$defs`/`definitions`, array-form `items`, `prefixItems`, `additionalItems`, `if`/`then`/`else`, a boolean subschema, a schema-valued `additionalProperties`; a `required` entry naming no declared property; a node declaring `properties` that does not accept `object`, or `items` that does not accept `array`; a schema that constrains nothing (a node with no `type`, `properties`, `items`, `required`, `enum` or `const`, or one that permits anything); and a value that is malformed, empty or over 64 KiB of schema text.
- **What comes back.** The JSON document, as the answer. On a chain, a step's answer is transformed before it is handed on, so the next step receives JSON; where the last step carries a schema, the caller receives JSON.
- **When it cannot be produced.** After at most three attempts and five minutes, the step's whole answer is forwarded unchanged — to you, or to the next step — with nothing added and nothing removed. The step has already done its work and is not re-run, and the chain is not failed because of it.
- **Where it is available.** Only your own `send`, and its command-line twin, takes it, and only for `worker`, `worker_branch`, `manager` and `role`: `guest` and `assistant` refuse it whole.