receipt_add
Create or replace a documentation receipt by validating URLs, selectors, and language first. Returns validation errors for malformed inputs so you can correct them before saving.
Instructions
Create a new receipt (or replace an existing one).
Required: key, name, language, urls, selectors. Optional: strip_tags, section, js_render, markdown_passthrough, notes, code_language. Validates before writing; returns validation errors if the receipt is malformed.
language is the human language of the documentation. code_language
optionally overrides the ``` fence language when the page's blocks are
in another language (e.g. a React SDK doc in English that emits
TypeScript). When omitted, the fence language is auto-detected from the
page and falls back to language only if it names a code language.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| name | Yes | ||
| urls | Yes | ||
| notes | No | ||
| section | No | ||
| language | Yes | ||
| js_render | No | ||
| selectors | Yes | ||
| strip_tags | No | ||
| code_language | No | ||
| markdown_passthrough | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |