# Corrade command pages (HTML)

One HTML fragment per Corrade command, converted from the official Corrade API
documentation on grimore.org (a DokuWiki). The pages follow
`meta/html-conventions.md`: a `<!--sldocs {json} -->` metadata comment, then a
bare HTML fragment.

**Generated:** 2026-11-19 (pages fetched 2026-11-18). **Pages:** 319 (`kind: "command"`).

Don't edit these files by hand. Regenerate them:

```bash
python3 tools/corrade/fetch_api.py      # polite mirror; uses the on-disk cache, never re-fetches
python3 tools/corrade/api_to_html.py    # writes corrade/html/*.html
python3 tools/corrade/check_html.py     # conventions + content-loss checks
python3 tools/validate_html.py corrade  # project-wide validator
```

## Source

- Index: <https://grimore.org/secondlife/scripted_agents/corrade>. It is a fully
  expanded DokuWiki *indexmenu* tree with 547 links under `api/`. 12 of those are
  `?idx=` namespace toggles, not pages, which leaves 535 API pages. The site
  sitemap (`/sitemap.xml.gz`) lists no API pages beyond these.
- `api/commands` itself is a struct-plugin aggregation table (name, parameters,
  description, permissions, changes), paginated 25 rows at a time
  (`?ofs=25` … `?ofs=300`). The 12 extra pages were fetched as index pages.
- Raw mirror: `sources/corrade-api-2026-11-18/`. Paths mirror the URLs
  (`api/commands/tell.html`; the pager pages are `api/commands@ofs=25.html`).
  `manifest.tsv` records the URL, local path, HTTP status, fetch time, the
  schema.org `dateModified` and the sitemap `lastmod`. All 548 fetches returned 200.
- The rendered HTML was used throughout. The raw export (`?do=export_raw`) needs a login.
- Politeness: robots.txt was honored (`Crawl-delay: 1`; 1.5 s was used),
  fetches were serial, the User-Agent was `SLdocs-docs-mirror/1.0`, and the
  fetcher backs off on 429/5xx. robots.txt also declares
  `Content-Signal: search=yes, ai-train=no, use=reference`. Don't use this
  mirror for model training.
- Page revisions (`dateModified`) of the command pages range from 2021-06-26 to 2026-10-15.

## What the conversion does

- Content: DokuWiki's `<article class="page">`. Removed: the TOC, comments,
  docInfo, and everything outside the article (header, breadcrumbs, sidebar,
  footer).
- The page's first `<h1>` (a descriptive title such as "Planar Move to a Local
  Position") goes to metadata as `page_title`. Other headings shift down one
  level (h1→h2, h2→h3, deeper→h4) and keep their `id`s.
- The changelog boxes (`wrap_changelog`) are kept in the body as written (bold
  date paragraph plus list) and are also parsed into `changelog`. Notice boxes
  (`wrap_important`) become `<blockquote>`.
- Code: GeSHi `pre.code lsl2` → `<pre><code class="language-lsl">`. Every other
  block (bash, powershell, xml, csharp) → `language-text`. Filename headers of
  `<file>` blocks become a paragraph that links to the download.
- Tables are kept, including `rowspan`/`colspan`, with `<thead>`/`<tbody>`.
- Links to other command pages are relative (`walkto.html`). All other links
  are absolute `https://grimore.org/...` URLs or the original external URL
  (including one `secondlife://` SLURL).
- Media: 4 videos and 2 images become links to the media file (`[video: …]`,
  `[image: …]`). LaTeX images are replaced by their TeX source (alt text).
- Footnotes (2 pages): the markers become plain `1)` text; the notes follow an `<hr>`.
- Text is never corrected. Typos in the source ("Auguest", "econonmy",
  "pahtfinding", …) remain.

## Metadata keys (beyond the common ones)

- `name`: the command as sent to Corrade. It's the spelling the page uses that
  matches the URL slug, taking evidence from the example's
  `"command", "<name>"`, the command table, the struct index and the prose.
  Two names differ from the URL: `HTTP` and `MQTT` (upper case, as written
  throughout their pages and examples; URLs are lower case), and
  `gettemporaryattachments` (the URL misspells it as `gettemproaryattachments`).
- `page_title`: the page's own heading.
- `summary`: the `description` field from the struct index. For the 5 commands
  missing from that index, it's the first sentence of the first prose paragraph.
- `permissions`: the Corrade permissions from the command table.
  - `permissions_conditions`: parenthesised qualifiers, e.g. `system` "if path is specified".
  - `permissions_text`: the raw cell text, when it is more than a plain list.
- `group_abilities`: SL group abilities (`Section→Ability`) from the "Required
  Group Abilities" or "Required Abilities" column (estate and parcel pages use
  the latter, sometimes for prose such as "Corrade must be an estate manager."). `group_abilities_text` keeps the full cell, because
  these cells are conditional prose.
- `parameters`: `[{name, required, note?, alternative_to?, table?, description?, values?}]`.
  - `required: true`: listed under *Required Parameters*.
  - `alternative_to`: e.g. `agent` for "`firstname`, `lastname` (or `agent` by
    UUID)". `required_parameters_text` keeps the raw cell.
  - `required: false`: listed in an *Optional Parameter(s)* table.
  - `required: null`: described in a plain *Parameter* table but not in the
    required list. The page doesn't say; this is often a conditionally required
    parameter (13 pages).
  - `values`: rows of the parameter tables (`value`, `description`,
    sub-parameter columns), with rowspans expanded. `inventory`'s *Action*
    table is parsed into `action.values` the same way.
  - `also_listed_optional: true`: the parameter is listed as required but also
    appears in an optional table on the same page (`addclassified` `type`,
    `batchdeletefromrole` `role`, `getremoteparcelinfodata` `global`). The page
    contradicts itself; verify in-world.
- `since`: the release in which the command was introduced. Set only when the
  changelog or index explicitly says `<version> - added.` (186 pages). Releases
  are numbered like `9.135` up to Corrade 9, then `C10`, `C11`, `C12`.
- `changelog`: `[{date, entries}]`.
- `status`: `["deprecated"]` only where a notice box says so (`autopilot`).
- `other_names_on_page`: other command names the page's command table or
  example uses. These are almost all copy-paste errors in the source (see below).
- `index_entry`: the struct index's `parameters`, `permissions` and `changes` for the command.
- `categories`: always empty. The pages have no tags or categories.
- `sources[0].revision`: the page's schema.org `dateModified`.

## Pages not converted (not commands)

All of these are mirrored under `sources/corrade-api-2026-11-18/api/` but have
no command page:

| Namespace | Pages | What they are |
|---|---|---|
| `api/notifications/` | 72 | notification types (`summon`, `group`, `local`, …) |
| `api/configuration/` | 68 | configuration-file keys (servers, groups, start locations, …) |
| `api/rlv/` | 29 | RLV commands Corrade supports (`@attach`, `@sit`, …) |
| `api/permissions/` | 17 | Corrade permission descriptions (`talk`, `land`, …) |
| `api/sifts/` | 15 | sift operators for post-processing results |
| `api/body_types/` | 13 | default primitive body types (struct data) |
| `api`, `api/commands`, 12 × `api/commands?ofs=N`, the corrade index | 15 | index pages |

Several of these share names with commands (e.g. `notifications/animation`,
`rlv/attach`), so they'd need their own `kind` values or namespacing before
they could be converted.

## Known gaps and source oddities

- **Copy-paste errors in command tables/examples** (left as written; recorded
  in `other_names_on_page`):
  - `look` and `processofflinemessages` say `activate`.
  - `getobjectlink` says `tag`.
  - `HTTP` says `MQTT`.
  - `recompilescript` says `getprimitivescripttext`.
  - `setobjectsaleinfo` says `setobjectposition`.
  - `getestatebanlist` says `getestatelist`.
  - `getattachmentspath` says `getattachments`.
  - `getwearablespath` says `getwearables`.
  - `batchavatarnametokey` says `batchavatarkeytoname`.
  - `getconferencemembersdata` says `getconferencememberdata`.
  - `getrolepowers` uses `getrolespowers` in both its table and example (the
    prose and URL say `getrolepowers`).

  Permissions and parameters on these pages may be copied from the other
  command too. Verify in-world.
- `replytoteleportsummon` and `replytofriendshiprequest` have command tables
  without a header row. They were parsed as the standard four columns.
- `listcommands`, `listnotifications`, `ping` and `version` have an empty
  permissions cell (`permissions: []`). `processofflinemessages` lists the
  literal permission `None`.
- In the struct index, `getprimitivesdata`, `getteleportsummons`, `gohome`,
  `replytoteleportsummon` and `gettemproaryattachments` are missing. Instead
  there are rows named `getteleportsummon` and `replytoteleportsummons`, which
  link to non-existent pages.
- `batchavatarnametokey`'s changelog is dated "30 April 2027" (in the future), as written.
- `getheartbeatdata`'s "Parameter" table lists the *values* of `data`, not
  parameters. They appear in `parameters` with `required: null`. Other
  `required: null` entries need the same scrutiny.
- Required-parameter and permission cells sometimes hold conditional prose.
  The structured fields are a best-effort parse; the `*_text` fields and the
  body tables are authoritative.
- Videos and images are not mirrored; they are linked.

## Cross-check

`tools/corrade/crosscheck_qmin.py` compares these pages with `sources/corrade_qmin_model.json`, the wiki's own crawl published for LLM use; see `corrade/qmin-crosscheck.md` for the findings, including page-vs-index conflicts worth testing in-world. Re-run it whenever the mirror or the qmin file is refreshed.
