List a part's edges and faces
list_entitiesList what a part is made of, as text rather than a picture: its visible edges with their centres, directions and lengths, and its faces with what each one is (plane, cylinder, cone, sphere, torus), its exact area, a point on it, its outward normal or axis, and the faces it touches. For a part in several named bodies each edge and face also says which body it is on.
Use the edges to work out which directional or topological selector picks the edges you mean. Use the faces to work out the shape of the part without looking at it — adjacent is the half that carries it, because a plane at z=44 could be the top of a plate or the floor of a pocket and what it borders is what tells them apart. A cylindrical face bordering two planes is a through hole; bordering one is a blind one.
The returned edge@N and face@N ids describe one evaluation and must never appear in a script — there is no face selector in the DSL, so a face is something to read, and the way to act on one is the edges around it.
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": "list_entities"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | The edge and face to start at, the reply's `next_from`; a reply lists at most 40 of each. | |
| edits | No | Changes to make before building, in order, each { old, new } replacing text that appears exactly once; nothing is written back. | |
| script | No | A parcad DSL script ending in a returned shape. Give this or `project`, not both. | |
| project | No | The part to build instead of sending it, as list_projects spells it, or "@session" for the script on the user's screen. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | ||
| more | No | ||
| edges | Yes | ||
| faces | Yes | ||
| next_from | No | ||
| total_edges | Yes | ||
| total_faces | Yes | ||
| script_sha256 | Yes | ||
| matched_loosely | No |