Read the document
get_document
Reads every body's dimensions, position, colour and box, and the sketch's shapes.
EditorTools tabAgentMCP
- Needs
- Nothing to pick: it works on the whole document.
- Tools tab
- A form of its inputs, filled from what is picked; Run makes the change, one step to undo.
- Agent and MCP
- The chat's agent and MCP clients call
get_document, which changes nothing. Over MCP it also takesproject,editor.
What it does
The document as the agent and MCP clients read it: each body's id, name, kind, dimensions by key, position, rotation, colour, the steps on its faces and the box around it as it stands, then each shape of the sketch.
A body of a keychain traced from a drawing also carries its role (ink, part, fill, frame, layer or stacked) and the id of the keychain it belongs to; an editable mesh carries its count of vertices and triangles rather than its points.
Limits
- It changes nothing.
- A body's position is the middle of its underside, not its centre: read its top and sides off its box.
Examples
Given: Box 1, a 20 mm box standing on the ground at the origin.
get_document {}Then: Box 1, a box 20 mm on each side at position [0, 0, 0], its box from [-10, -10, 0] to [10, 10, 20]; no shape in the sketch.