feat: feature replies list the bodies the feature created (#525)

Fixes #374. Feature replies gain created_bodies: the bodies the new feature made, apart from the ones it changed or that were already there. Documented in the execute tool description and docs/mcp.md.
This commit is contained in:
Jonas Wrede authored and GitHub committed 2026-10-13 02:39:19 -04:00
1 parent c1cd4cf194
commit 9283d2b5bb
5 files changed
+23 -6

No files matched your search

+2 -1
View File
@@ -62,7 +62,8 @@ pub fn tool_definitions() -> Vec<Value> {
the command's result; failures leave the design unchanged. Sketch commands that add geometry return \
created: {points, curves, constraints, dimensions}: the ids of what they added, stable and not reused \
after a delete (undo rewinds the counters with the design), usable right away \
in sketch.dimension, sketch.constraint.* and sketch.delete.",
in sketch.dimension, sketch.constraint.* and sketch.delete. Feature commands return the feature's id \
and name, every body (bodies) and the bodies the feature created (created_bodies).",
obj(
json!({
"command": string("Command id (see list_commands)"),