Read parcad's own documentation
read_docsRead parcad's own documentation. Call this before writing your first script: dsl is the complete language reference — every function, method and constant, with signatures and what each one means — generated from the DSL source, so nothing it has can be missing from it.
The alternative is learning the language from example parts, and that has been measured: a session that read two of them built its part out of boxes and cylinders, recorded mirror and lofts as impossible when both ship, and never found revolve, cone, ngon, polar, repeat, countersink, counterbore, tapDrill or clearance. The parts it wrote were a function of which files it happened to open.
The other topics are prose, and each is cited by name inside the seeded parts' own comments: gaps is what the language cannot express and what to write instead; gotchas is the list of shapes that make the kernel return a plausible wrong answer or die — a blended union of two solids that only touch on a face, an offset that silently drops a body, a fillet that grows the part; operations is which operations exist, which are deliberately absent, and why. Read gaps and gotchas before a part with blends, offsets or shells in it: most failed calls are in there already, described from the other side.
A topic too long for one reply — dsl is one, and so is gotchas — answers first with its contents, not the document: every section by name, and the name of every entry in it. section in that reply says contents, and sections lists the section names. Call read_docs again with the same topic and section set to one of those names to read that section whole, or to one entry's name — holeFor, Shape.mirror, SectionEntry; a bare method name like mirror also works — to read just that entry. Reading every section in sections is reading the whole document; nothing is left out of them. A topic that fits in one reply comes back whole, with no section. Entries give the rules and an example; detail: true adds the reasons and history behind them, which writing a part rarely needs. When you do not know which section has something, pass query with a name or a few words instead: the reply lists every section and entry that mentions them, with the topic and section to read each one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "read_docs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Words to look for, such as `countersink` or `blend union touching`. The reply lists the sections and entries that mention them, in every topic or in `topic` alone, each with the `topic` and `section` that read it whole. | |
| topic | No | Which document: `dsl` (the default) is the language reference; `gaps` is what the language cannot express; `gotchas` is what silently returns a wrong answer; `operations` is what exists and what is deliberately absent. The reply lists them all, so one call finds the rest. | |
| detail | No | Add the reasons and history behind each rule. Leave it out: the default is the rules themselves, and is what writing a part needs. | |
| section | No | One part of a topic too long for a single reply. Leave it out first: a long topic then answers with its contents, which names every section and every entry. Pass a section name from there to read that section whole, or one entry's name — `spurGearOutline`, `Shape.mirror`, `SectionEntry` — to read just that entry. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| topic | Yes | ||
| source | Yes | ||
| topics | Yes | ||
| section | No | ||
| sections | Yes |