{"at":"2026-11-23T05:47:35.286Z","dir":"sent","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","method":"server/discover","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/clientInfo":{"name":"didrun-lab","version":"0.1.0"},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:47:36.295Z","dir":"received","era":"server_discover","message":{"id":1,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"FreeCADMCP","version":""}},"cacheScope":"private","capabilities":{"prompts":{"listChanged":true},"resources":{"listChanged":true,"subscribe":true},"tools":{"listChanged":true}},"instructions":"FreeCAD integration through the Model Context Protocol","resultType":"complete","supportedVersions":["2026-07-28"],"ttlMs":0}}}
{"at":"2026-11-23T05:47:36.295Z","dir":"sent","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{"_meta":{"io.modelcontextprotocol/clientCapabilities":{},"io.modelcontextprotocol/protocolVersion":"2026-07-28"}}}}
{"at":"2026-11-23T05:47:36.296Z","dir":"received","era":"server_discover","message":{"id":2,"jsonrpc":"2.0","result":{"_meta":{"io.modelcontextprotocol/serverInfo":{"name":"FreeCADMCP","version":""}},"cacheScope":"private","resultType":"complete","tools":[{"description":"Create a new document in FreeCAD.\n\nArgs:\n    name: The name of the document to create.\n\nReturns:\n    A message indicating the success or failure of the document creation.\n\nExamples:\n    If you want to create a document named \"MyDocument\", you can use the following data.\n    ```json\n    {\n        \"name\": \"MyDocument\"\n    }\n    ```\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"create_documentArguments","type":"object"},"name":"create_document"},{"description":"Create a new object in FreeCAD.\n\n``obj_type`` must name a type registered in FreeCAD's C++ type system, such\nas \"Part::\", \"PartDesign::\" or \"Fem::\" types. A number of FreeCAD features\nare implemented in Python rather than C++ and so are not registered types;\nof those, these are supported here through dedicated factories, and each\nrequires the properties listed beside it:\n\n    Part::Tube        InnerRadius, OuterRadius, Height\n    Draft::Circle     Radius\n    Draft::Rectangle  Length, Height\n    Draft::Polygon    FacesNumber, Radius\n    Draft::Wire       Points (list of {x, y, z}), optional Closed\n\nAny other Python-implemented type (Draft::Point, Draft::Ellipse, ...) must\nbe built with ``execute_code`` instead.\n\nNote that the Draft factories name objects themselves, so for those the\nreturned object_name will differ from the requested obj_name, which is\napplied to the object's Label instead. Always use the returned name in\nlater get_object/edit_object calls.\n\nArgs:\n    doc_name: The name of the document to create the object in.\n    obj_type: The type of the object to create (e.g. 'Part::Box', 'Part::Cylinder', 'Part::Cut', 'PartDesign::Body', etc.).\n    obj_name: The name of the object to create.\n    obj_properties: The properties of the object to create.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the object creation and a screenshot of the object.\n\nExamples:\n    If you want to create a cylinder with a height of 30 and a radius of 10, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyCylinder\",\n        \"obj_name\": \"Cylinder\",\n        \"obj_type\": \"Part::Cylinder\",\n        \"obj_properties\": {\n            \"Height\": 30,\n            \"Radius\": 10,\n            \"Placement\": {\n                \"Base\": {\n                    \"x\": 10,\n                    \"y\": 10,\n                    \"z\": 0\n                },\n                \"Rotation\": {\n                    \"Axis\": {\n                        \"x\": 0,\n                        \"y\": 0,\n                        \"z\": 1\n                    },\n                    \"Angle\": 45\n                }\n            },\n            \"ViewObject\": {\n                \"ShapeColor\": [0.5, 0.5, 0.5, 1.0]\n            }\n        }\n    }\n    ```\n\n    If you want to cut one solid out of another, create both solids first,\n    then reference them by name as 'Base' and 'Tool'.\n    ```json\n    {\n        \"doc_name\": \"MyPart\",\n        \"obj_name\": \"Cut\",\n        \"obj_type\": \"Part::Cut\",\n        \"obj_properties\": {\n            \"Base\": \"Box\",\n            \"Tool\": \"Cylinder\"\n        }\n    }\n    ```\n\n    If you want to create a pipe with an outer diameter of 250, a 10 wall\n    and a length of 500, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyPipe\",\n        \"obj_name\": \"Pipe\",\n        \"obj_type\": \"Part::Tube\",\n        \"obj_properties\": {\n            \"OuterRadius\": 125,\n            \"InnerRadius\": 115,\n            \"Height\": 500\n        }\n    }\n    ```\n\n    If you want to create a FEM analysis, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyFEMAnalysis\",\n        \"obj_name\": \"FemAnalysis\",\n        \"obj_type\": \"Fem::AnalysisPython\",\n    }\n    ```\n\n    If you want to create a FEM constraint, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyFEMConstraint\",\n        \"obj_name\": \"FemConstraint\",\n        \"obj_type\": \"Fem::ConstraintFixed\",\n        \"analysis_name\": \"MyFEMAnalysis\",\n        \"obj_properties\": {\n            \"References\": [\n                {\n                    \"object_name\": \"MyObject\",\n                    \"face\": \"Face1\"\n                }\n            ]\n        }\n    }\n    ```\n\n    If you want to create a FEM mechanical material, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyFEMAnalysis\",\n        \"obj_name\": \"FemMechanicalMaterial\",\n        \"obj_type\": \"Fem::MaterialCommon\",\n        \"analysis_name\": \"MyFEMAnalysis\",\n        \"obj_properties\": {\n            \"Material\": {\n                \"Name\": \"MyMaterial\",\n                \"Density\": \"7900 kg/m^3\",\n                \"YoungsModulus\": \"210 GPa\",\n                \"PoissonRatio\": \"0.3\"\n            }\n        }\n    }\n    ```\n\n    If you want to create a FEM mesh, you can use the following data.\n    The `Shape` property is required (legacy `Part` is also accepted).\n    On FreeCAD 1.x the size limits are `CharacteristicLengthMax/Min`;\n    the legacy `ElementSizeMax/Min` keys are also accepted.\n    ```json\n    {\n        \"doc_name\": \"MyFEMMesh\",\n        \"obj_name\": \"FemMesh\",\n        \"obj_type\": \"Fem::FemMeshGmsh\",\n        \"analysis_name\": \"MyFEMAnalysis\",\n        \"obj_properties\": {\n            \"Shape\": \"MyObject\",\n            \"CharacteristicLengthMax\": 10,\n            \"CharacteristicLengthMin\": 0.1\n        }\n    }\n    ```\n","inputSchema":{"properties":{"analysis_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Analysis Name"},"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"obj_properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Obj Properties"},"obj_type":{"title":"Obj Type","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_type","obj_name"],"title":"create_objectArguments","type":"object"},"name":"create_object"},{"description":"Edit an object in FreeCAD.\nThis tool is used when the `create_object` tool cannot handle the object creation.\n\nArgs:\n    doc_name: The name of the document to edit the object in.\n    obj_name: The name of the object to edit.\n    obj_properties: The properties of the object to edit.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the object editing and a screenshot of the object.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"obj_properties":{"additionalProperties":true,"title":"Obj Properties","type":"object"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_name","obj_properties"],"title":"edit_objectArguments","type":"object"},"name":"edit_object"},{"description":"Delete an object in FreeCAD.\n\nArgs:\n    doc_name: The name of the document to delete the object from.\n    obj_name: The name of the object to delete.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the object deletion and a screenshot of the object.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_name"],"title":"delete_objectArguments","type":"object"},"name":"delete_object"},{"description":"Execute Python code in FreeCAD without waiting for completion.\n\nUse this ONLY for long-running background computations that do NOT touch the\nFreeCAD GUI or mutate the FreeCAD document tree directly.\n\nThis tool runs the submitted code in a background thread and returns\nimmediately. Because it does not run on FreeCAD's main GUI thread, the code\nmust NOT directly call FreeCADGui APIs, manipulate the active view or\nselection, create or edit document objects, change object properties, call\ndoc.recompute(), or save documents. FreeCAD documents and the Coin3D\nscenegraph are not thread-safe: writing to them from this thread races the\nGUI thread and can wedge FreeCAD's event loop, after which the RPC server\nstops responding entirely and FreeCAD must be restarted.\n\nEvery document or view write must instead be handed to the GUI thread through\nthe injected commit() helper:\n\n    commit(fn, timeout=120) -> fn's return value\n\nScripts share a live namespace. Saved functions can use commit() in later\nasync calls; calling it from execute_code or a GUI callback raises immediately.\nCoordinate concurrent scripts that intentionally modify the same variables.\n\ncommit() queues fn on the GUI thread, waits for it, and raises RuntimeError if\ndispatch fails or times out. Example:\n\n    fused = base.fuse(addition).removeSplitter()   # slow, safe in background\n\n    def apply():                                   # runs on the GUI thread\n        obj.Shape = fused\n        doc.recompute()\n\n    commit(apply)\n\nFor code that is not dominated by heavy geometry computation, use execute_code\ninstead. execute_code runs entirely on the FreeCAD GUI thread and is the safe\ndefault for normal FreeCAD automation.\n\nUse execute_code_async only when the heavy part is long-running OCCT geometry\n(e.g. fuse/cut/loft on already-fetched shapes) or other CPU-bound computation\nthat would exceed execute_code's 90 s GUI-thread budget.\n\nTypical usage pattern:\n1. Fetch shapes into module-level variables first (via execute_code).\n2. Run the heavy computation via execute_code_async.\n3. Apply the result inside commit(), or store it in a module-level Python\n   variable (not in the FreeCAD document) for a later execute_code call.\n\nPerformance note: boolean operations against shapes with many faces (e.g. a\nribbed lid) are expensive. Fuse the additions together first, then apply a\nsingle boolean against the heavy shape, and avoid doc.recompute() unless the\ndependency graph really needs it.\n\nArgs:\n    code: Background-safe Python code to execute. Use commit(fn) for all\n        document and view writes.\n\nReturns:\n    A message with the job_id of the started background execution.\n","inputSchema":{"properties":{"code":{"title":"Code","type":"string"}},"required":["code"],"title":"execute_code_asyncArguments","type":"object"},"name":"execute_code_async"},{"description":"Run a FreeCAD Python script in a separate headless `freecadcmd` process.\n\nUse this for OCCT work that can crash or block FreeCAD: helical threads\n(makeHelix + makePipeShell), lofts and sweeps, booleans with many or\nB-spline tools, long parametric rebuilds. A native OpenCascade crash\nhere only kills the helper process; the GUI and its open documents\nsurvive, and the tool reports the crash signal and the script's output.\n\nThe script runs on the MCP server machine, independently of --host, in a\nfresh process without GUI: import FreeCAD/Part\nyourself, open documents from disk (FreeCAD.openDocument(path)), save\nresults with doc.save()/saveAs() or Shape.exportBrep(). Nothing from the\nexecute_code namespace is available. Print progress to stdout; it is\nreturned when the process ends. After the script saved a .FCStd that is\nopen in the GUI, call reload_document(doc_name) to show the result.\n\nArgs:\n    code: Complete Python script for freecadcmd.\n    timeout: Positive finite seconds to wait before killing the process\n        (default 600). Partial output is preserved on timeout.\n\nReturns:\n    Exit status, crash/timeout diagnosis and the script's printed output.\n","inputSchema":{"properties":{"code":{"title":"Code","type":"string"},"timeout":{"default":600,"title":"Timeout","type":"number"}},"required":["code"],"title":"execute_code_headlessArguments","type":"object"},"name":"execute_code_headless"},{"description":"Report the state of background jobs started by execute_code_async.\n\nDoes not use the FreeCAD GUI thread, so it answers even while a job runs.\n\nArgs:\n    job_id: The id returned by execute_code_async. Empty lists all running\n        jobs and up to 20 recently completed jobs.\n\nReturns:\n    For one job: its state (running/done/failed), the error and traceback\n    when it failed. History is held in memory until FreeCAD exits.\n","inputSchema":{"properties":{"job_id":{"default":"","title":"Job Id","type":"string"}},"title":"get_async_statusArguments","type":"object"},"name":"get_async_status"},{"description":"Execute arbitrary Python code in FreeCAD.\n\nArgs:\n    code: The Python code to execute.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when the code does not change the model's\n        appearance, e.g. analytical or computational scripts whose result is\n        printed output, or intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n    timeout: Positive finite seconds for each of the queue and GUI execution\n        budgets, overriding the 90 s default for this call (capped at 1800).\n        Raise it for slow work that must\n        run on the GUI thread, such as importing or exporting a large STEP\n        assembly. Without it the call reports a timeout while the task keeps\n        running, and the result is lost even though the work finishes. Prefer\n        execute_code_async for heavy pure-geometry work that touches neither\n        the document nor the GUI.\n\nReturns:\n    A message indicating the success or failure of the code execution, the output of the code execution, and a screenshot of the object.\n","inputSchema":{"properties":{"code":{"title":"Code","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Timeout"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["code"],"title":"execute_codeArguments","type":"object"},"name":"execute_code"},{"description":"Get a screenshot of the active view.\n\nArgs:\n    view_name: The name of the view to get the screenshot of.\n    The following views are available:\n    - \"Isometric\"\n    - \"Front\"\n    - \"Top\"\n    - \"Right\"\n    - \"Back\"\n    - \"Left\"\n    - \"Bottom\"\n    - \"Dimetric\"\n    - \"Trimetric\"\n    width: The width of the screenshot in pixels. If not specified, uses the viewport width.\n    height: The height of the screenshot in pixels. If not specified, uses the viewport height.\n    focus_object: The name of the object to focus on. If not specified, fits all objects in the view.\n\nReturns:\n    A screenshot of the active view.\n","inputSchema":{"properties":{"focus_object":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Focus Object"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Height"},"view_name":{"enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Width"}},"required":["view_name"],"title":"get_viewArguments","type":"object"},"name":"get_view"},{"description":"Insert a part from the parts library addon.\n\nArgs:\n    relative_path: The relative path of the part to insert.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the part insertion and a screenshot of the object.\n","inputSchema":{"properties":{"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"relative_path":{"title":"Relative Path","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["relative_path"],"title":"insert_part_from_libraryArguments","type":"object"},"name":"insert_part_from_library"},{"description":"Get all objects in a document.\nYou can use this tool to get the objects in a document to see what you can check or edit.\n\nArgs:\n    doc_name: The name of the document to get the objects from.\n    include_screenshot: Whether to return a screenshot of the document (default True).\n        Set to False to save tokens when only the object data is needed.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n\nReturns:\n    A list of objects in the document and a screenshot of the document.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name"],"title":"get_objectsArguments","type":"object"},"name":"get_objects"},{"description":"Get an object from a document.\nYou can use this tool to get the properties of an object to see what you can check or edit.\n\nArgs:\n    doc_name: The name of the document to get the object from.\n    obj_name: The name of the object to get.\n    include_screenshot: Whether to return a screenshot of the document (default True).\n        Set to False to save tokens when only the object data is needed.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n\nReturns:\n    The object and a screenshot of the object.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_name"],"title":"get_objectArguments","type":"object"},"name":"get_object"},{"description":"Get the list of parts in the parts library addon.\n    ","inputSchema":{"properties":{},"title":"get_parts_listArguments","type":"object"},"name":"get_parts_list"},{"description":"Close and re-open a document to pick up external file changes.\n\nUse this AFTER the document's .FCStd file has been modified by\nsomething outside of FreeCAD's GUI process — for example, a\nheadless `freecadcmd` script that edited and saved the file. The\nopen GUI document is otherwise unaware of on-disk changes; this\ntool closes the stale in-memory copy and reopens the file from\ndisk so the GUI shows current geometry.\n\nArgs:\n    doc_name: The name of the open document to reload. Must match\n        the name shown by ``list_documents``.\n\nReturns:\n    A message confirming the document was reloaded, or describing\n    the failure (document not loaded, no associated file, etc).\n    FreeCAD names the reopened document after the file stem, which\n    can differ from ``doc_name`` (\"HandleConcept3D\" saved as\n    handle-concept-3d.FCStd reopens as handle_concept_3d); the reply\n    names the document you should use from then on.\n\nExamples:\n    ```json\n    {\n        \"doc_name\": \"chassis\"\n    }\n    ```\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"}},"required":["doc_name"],"title":"reload_documentArguments","type":"object"},"name":"reload_document"},{"description":"Get the list of open documents in FreeCAD.\n\nReturns:\n    A list of document names.\n","inputSchema":{"properties":{},"title":"list_documentsArguments","type":"object"},"name":"list_documents"},{"description":"Get RPC and FreeCAD GUI-dispatch health.\n\nThis tool does not use FreeCAD's GUI thread, so it remains available after\na GUI operation times out. A ``stuck`` state identifies the operation that\nis still running and indicates that FreeCAD may need to be restarted.\n``version_check`` is \"ok\" or says whether the addon or the server needs\nupdating.\n","inputSchema":{"properties":{},"title":"get_rpc_statusArguments","type":"object"},"name":"get_rpc_status"},{"description":"Run the CalculiX solver on an existing Fem::FemAnalysis container and return summary results.\n\nPrerequisites in the document, all created with `create_object`:\n- A Part-derived solid (e.g. Part::Box, PartDesign::Body) acting as the geometry.\n- A Fem::AnalysisPython container.\n- A material: type \"Fem::MaterialCommon\" with analysis_name set (built with\n  ObjectsFem.makeMaterialSolid) and its Material given as a dict with units,\n  e.g. {\"Name\": \"Steel\", \"YoungsModulus\": \"210 GPa\", \"PoissonRatio\": \"0.3\",\n  \"Density\": \"7900 kg/m^3\"}. A dict read from the material library can\n  come back empty; give the values.\n- A mesh: type \"Fem::FemMeshGmsh\" with analysis_name, Shape (the geometry)\n  and CharacteristicLengthMax / CharacteristicLengthMin; it is generated\n  when created. A section needs several elements across its thickness,\n  or bending stress comes out far too low.\n- At least one Fem::ConstraintFixed and one Fem::ConstraintForce (or\n  ConstraintPressure) whose References are faces of the geometry.\n- Set Force with its unit, e.g. \"1000 N\": create_object/edit_object reject\n  unitless values. In existing documents and execute_code, a plain number\n  uses millinewtons, so Force = 1000 applies 1 N. The force acts along the\n  normal of the loaded face unless Direction links an edge or face;\n  Reversed flips it.\n\nA SolverCcxTools is auto-created if the analysis has none. The reply\nlists mechanical loads captured in the same GUI operation as the solve\n(in N and MPa, with faces and direction). A failed load read stops the solve.\nDirection can be set to {\"object_name\": \"Beam\", \"edge\": \"Edge1\"}.\n\nThe solver runs synchronously on the FreeCAD GUI thread and blocks all\nother RPC calls for its duration; do not fan out parallel requests.\n\nReturns max von Mises stress (MPa), max/min displacement (mm), node count,\nand the working directory CalculiX wrote to. On failure, returns the\nprerequisite-check or solver error along with the working directory for\ntriage.\n\nArgs:\n    doc_name: Name of the FreeCAD document.\n    analysis_name: Name of the Fem::AnalysisPython object.\n    timeout: Seconds to wait for the solver (default 600).\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when only the numeric results are needed.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n","inputSchema":{"properties":{"analysis_name":{"title":"Analysis Name","type":"string"},"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"timeout":{"default":600,"title":"Timeout","type":"integer"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","analysis_name"],"title":"run_fem_analysisArguments","type":"object"},"name":"run_fem_analysis"}],"ttlMs":0}}}
{"at":"2026-11-23T05:47:36.447Z","dir":"sent","era":"initialize","message":{"id":1,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{},"clientInfo":{"name":"didrun-lab","version":"0.1.0"},"protocolVersion":"2025-11-25"}}}
{"at":"2026-11-23T05:47:37.378Z","dir":"received","era":"initialize","message":{"id":1,"jsonrpc":"2.0","result":{"capabilities":{"prompts":{"listChanged":false},"resources":{"listChanged":false,"subscribe":false},"tools":{"listChanged":false}},"instructions":"FreeCAD integration through the Model Context Protocol","protocolVersion":"2025-11-25","serverInfo":{"name":"FreeCADMCP","version":""}}}}
{"at":"2026-11-23T05:47:37.378Z","dir":"sent","era":"initialize","message":{"jsonrpc":"2.0","method":"notifications/initialized"}}
{"at":"2026-11-23T05:47:37.378Z","dir":"sent","era":"initialize","message":{"id":2,"jsonrpc":"2.0","method":"tools/list","params":{}}}
{"at":"2026-11-23T05:47:37.380Z","dir":"received","era":"initialize","message":{"id":2,"jsonrpc":"2.0","result":{"tools":[{"description":"Create a new document in FreeCAD.\n\nArgs:\n    name: The name of the document to create.\n\nReturns:\n    A message indicating the success or failure of the document creation.\n\nExamples:\n    If you want to create a document named \"MyDocument\", you can use the following data.\n    ```json\n    {\n        \"name\": \"MyDocument\"\n    }\n    ```\n","inputSchema":{"properties":{"name":{"title":"Name","type":"string"}},"required":["name"],"title":"create_documentArguments","type":"object"},"name":"create_document"},{"description":"Create a new object in FreeCAD.\n\n``obj_type`` must name a type registered in FreeCAD's C++ type system, such\nas \"Part::\", \"PartDesign::\" or \"Fem::\" types. A number of FreeCAD features\nare implemented in Python rather than C++ and so are not registered types;\nof those, these are supported here through dedicated factories, and each\nrequires the properties listed beside it:\n\n    Part::Tube        InnerRadius, OuterRadius, Height\n    Draft::Circle     Radius\n    Draft::Rectangle  Length, Height\n    Draft::Polygon    FacesNumber, Radius\n    Draft::Wire       Points (list of {x, y, z}), optional Closed\n\nAny other Python-implemented type (Draft::Point, Draft::Ellipse, ...) must\nbe built with ``execute_code`` instead.\n\nNote that the Draft factories name objects themselves, so for those the\nreturned object_name will differ from the requested obj_name, which is\napplied to the object's Label instead. Always use the returned name in\nlater get_object/edit_object calls.\n\nArgs:\n    doc_name: The name of the document to create the object in.\n    obj_type: The type of the object to create (e.g. 'Part::Box', 'Part::Cylinder', 'Part::Cut', 'PartDesign::Body', etc.).\n    obj_name: The name of the object to create.\n    obj_properties: The properties of the object to create.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the object creation and a screenshot of the object.\n\nExamples:\n    If you want to create a cylinder with a height of 30 and a radius of 10, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyCylinder\",\n        \"obj_name\": \"Cylinder\",\n        \"obj_type\": \"Part::Cylinder\",\n        \"obj_properties\": {\n            \"Height\": 30,\n            \"Radius\": 10,\n            \"Placement\": {\n                \"Base\": {\n                    \"x\": 10,\n                    \"y\": 10,\n                    \"z\": 0\n                },\n                \"Rotation\": {\n                    \"Axis\": {\n                        \"x\": 0,\n                        \"y\": 0,\n                        \"z\": 1\n                    },\n                    \"Angle\": 45\n                }\n            },\n            \"ViewObject\": {\n                \"ShapeColor\": [0.5, 0.5, 0.5, 1.0]\n            }\n        }\n    }\n    ```\n\n    If you want to cut one solid out of another, create both solids first,\n    then reference them by name as 'Base' and 'Tool'.\n    ```json\n    {\n        \"doc_name\": \"MyPart\",\n        \"obj_name\": \"Cut\",\n        \"obj_type\": \"Part::Cut\",\n        \"obj_properties\": {\n            \"Base\": \"Box\",\n            \"Tool\": \"Cylinder\"\n        }\n    }\n    ```\n\n    If you want to create a pipe with an outer diameter of 250, a 10 wall\n    and a length of 500, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyPipe\",\n        \"obj_name\": \"Pipe\",\n        \"obj_type\": \"Part::Tube\",\n        \"obj_properties\": {\n            \"OuterRadius\": 125,\n            \"InnerRadius\": 115,\n            \"Height\": 500\n        }\n    }\n    ```\n\n    If you want to create a FEM analysis, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyFEMAnalysis\",\n        \"obj_name\": \"FemAnalysis\",\n        \"obj_type\": \"Fem::AnalysisPython\",\n    }\n    ```\n\n    If you want to create a FEM constraint, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyFEMConstraint\",\n        \"obj_name\": \"FemConstraint\",\n        \"obj_type\": \"Fem::ConstraintFixed\",\n        \"analysis_name\": \"MyFEMAnalysis\",\n        \"obj_properties\": {\n            \"References\": [\n                {\n                    \"object_name\": \"MyObject\",\n                    \"face\": \"Face1\"\n                }\n            ]\n        }\n    }\n    ```\n\n    If you want to create a FEM mechanical material, you can use the following data.\n    ```json\n    {\n        \"doc_name\": \"MyFEMAnalysis\",\n        \"obj_name\": \"FemMechanicalMaterial\",\n        \"obj_type\": \"Fem::MaterialCommon\",\n        \"analysis_name\": \"MyFEMAnalysis\",\n        \"obj_properties\": {\n            \"Material\": {\n                \"Name\": \"MyMaterial\",\n                \"Density\": \"7900 kg/m^3\",\n                \"YoungsModulus\": \"210 GPa\",\n                \"PoissonRatio\": \"0.3\"\n            }\n        }\n    }\n    ```\n\n    If you want to create a FEM mesh, you can use the following data.\n    The `Shape` property is required (legacy `Part` is also accepted).\n    On FreeCAD 1.x the size limits are `CharacteristicLengthMax/Min`;\n    the legacy `ElementSizeMax/Min` keys are also accepted.\n    ```json\n    {\n        \"doc_name\": \"MyFEMMesh\",\n        \"obj_name\": \"FemMesh\",\n        \"obj_type\": \"Fem::FemMeshGmsh\",\n        \"analysis_name\": \"MyFEMAnalysis\",\n        \"obj_properties\": {\n            \"Shape\": \"MyObject\",\n            \"CharacteristicLengthMax\": 10,\n            \"CharacteristicLengthMin\": 0.1\n        }\n    }\n    ```\n","inputSchema":{"properties":{"analysis_name":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Analysis Name"},"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"obj_properties":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"default":null,"title":"Obj Properties"},"obj_type":{"title":"Obj Type","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_type","obj_name"],"title":"create_objectArguments","type":"object"},"name":"create_object"},{"description":"Edit an object in FreeCAD.\nThis tool is used when the `create_object` tool cannot handle the object creation.\n\nArgs:\n    doc_name: The name of the document to edit the object in.\n    obj_name: The name of the object to edit.\n    obj_properties: The properties of the object to edit.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the object editing and a screenshot of the object.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"obj_properties":{"additionalProperties":true,"title":"Obj Properties","type":"object"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_name","obj_properties"],"title":"edit_objectArguments","type":"object"},"name":"edit_object"},{"description":"Delete an object in FreeCAD.\n\nArgs:\n    doc_name: The name of the document to delete the object from.\n    obj_name: The name of the object to delete.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the object deletion and a screenshot of the object.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_name"],"title":"delete_objectArguments","type":"object"},"name":"delete_object"},{"description":"Execute Python code in FreeCAD without waiting for completion.\n\nUse this ONLY for long-running background computations that do NOT touch the\nFreeCAD GUI or mutate the FreeCAD document tree directly.\n\nThis tool runs the submitted code in a background thread and returns\nimmediately. Because it does not run on FreeCAD's main GUI thread, the code\nmust NOT directly call FreeCADGui APIs, manipulate the active view or\nselection, create or edit document objects, change object properties, call\ndoc.recompute(), or save documents. FreeCAD documents and the Coin3D\nscenegraph are not thread-safe: writing to them from this thread races the\nGUI thread and can wedge FreeCAD's event loop, after which the RPC server\nstops responding entirely and FreeCAD must be restarted.\n\nEvery document or view write must instead be handed to the GUI thread through\nthe injected commit() helper:\n\n    commit(fn, timeout=120) -> fn's return value\n\nScripts share a live namespace. Saved functions can use commit() in later\nasync calls; calling it from execute_code or a GUI callback raises immediately.\nCoordinate concurrent scripts that intentionally modify the same variables.\n\ncommit() queues fn on the GUI thread, waits for it, and raises RuntimeError if\ndispatch fails or times out. Example:\n\n    fused = base.fuse(addition).removeSplitter()   # slow, safe in background\n\n    def apply():                                   # runs on the GUI thread\n        obj.Shape = fused\n        doc.recompute()\n\n    commit(apply)\n\nFor code that is not dominated by heavy geometry computation, use execute_code\ninstead. execute_code runs entirely on the FreeCAD GUI thread and is the safe\ndefault for normal FreeCAD automation.\n\nUse execute_code_async only when the heavy part is long-running OCCT geometry\n(e.g. fuse/cut/loft on already-fetched shapes) or other CPU-bound computation\nthat would exceed execute_code's 90 s GUI-thread budget.\n\nTypical usage pattern:\n1. Fetch shapes into module-level variables first (via execute_code).\n2. Run the heavy computation via execute_code_async.\n3. Apply the result inside commit(), or store it in a module-level Python\n   variable (not in the FreeCAD document) for a later execute_code call.\n\nPerformance note: boolean operations against shapes with many faces (e.g. a\nribbed lid) are expensive. Fuse the additions together first, then apply a\nsingle boolean against the heavy shape, and avoid doc.recompute() unless the\ndependency graph really needs it.\n\nArgs:\n    code: Background-safe Python code to execute. Use commit(fn) for all\n        document and view writes.\n\nReturns:\n    A message with the job_id of the started background execution.\n","inputSchema":{"properties":{"code":{"title":"Code","type":"string"}},"required":["code"],"title":"execute_code_asyncArguments","type":"object"},"name":"execute_code_async"},{"description":"Run a FreeCAD Python script in a separate headless `freecadcmd` process.\n\nUse this for OCCT work that can crash or block FreeCAD: helical threads\n(makeHelix + makePipeShell), lofts and sweeps, booleans with many or\nB-spline tools, long parametric rebuilds. A native OpenCascade crash\nhere only kills the helper process; the GUI and its open documents\nsurvive, and the tool reports the crash signal and the script's output.\n\nThe script runs on the MCP server machine, independently of --host, in a\nfresh process without GUI: import FreeCAD/Part\nyourself, open documents from disk (FreeCAD.openDocument(path)), save\nresults with doc.save()/saveAs() or Shape.exportBrep(). Nothing from the\nexecute_code namespace is available. Print progress to stdout; it is\nreturned when the process ends. After the script saved a .FCStd that is\nopen in the GUI, call reload_document(doc_name) to show the result.\n\nArgs:\n    code: Complete Python script for freecadcmd.\n    timeout: Positive finite seconds to wait before killing the process\n        (default 600). Partial output is preserved on timeout.\n\nReturns:\n    Exit status, crash/timeout diagnosis and the script's printed output.\n","inputSchema":{"properties":{"code":{"title":"Code","type":"string"},"timeout":{"default":600,"title":"Timeout","type":"number"}},"required":["code"],"title":"execute_code_headlessArguments","type":"object"},"name":"execute_code_headless"},{"description":"Report the state of background jobs started by execute_code_async.\n\nDoes not use the FreeCAD GUI thread, so it answers even while a job runs.\n\nArgs:\n    job_id: The id returned by execute_code_async. Empty lists all running\n        jobs and up to 20 recently completed jobs.\n\nReturns:\n    For one job: its state (running/done/failed), the error and traceback\n    when it failed. History is held in memory until FreeCAD exits.\n","inputSchema":{"properties":{"job_id":{"default":"","title":"Job Id","type":"string"}},"title":"get_async_statusArguments","type":"object"},"name":"get_async_status"},{"description":"Execute arbitrary Python code in FreeCAD.\n\nArgs:\n    code: The Python code to execute.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when the code does not change the model's\n        appearance, e.g. analytical or computational scripts whose result is\n        printed output, or intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n    timeout: Positive finite seconds for each of the queue and GUI execution\n        budgets, overriding the 90 s default for this call (capped at 1800).\n        Raise it for slow work that must\n        run on the GUI thread, such as importing or exporting a large STEP\n        assembly. Without it the call reports a timeout while the task keeps\n        running, and the result is lost even though the work finishes. Prefer\n        execute_code_async for heavy pure-geometry work that touches neither\n        the document nor the GUI.\n\nReturns:\n    A message indicating the success or failure of the code execution, the output of the code execution, and a screenshot of the object.\n","inputSchema":{"properties":{"code":{"title":"Code","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"timeout":{"anyOf":[{"type":"number"},{"type":"null"}],"default":null,"title":"Timeout"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["code"],"title":"execute_codeArguments","type":"object"},"name":"execute_code"},{"description":"Get a screenshot of the active view.\n\nArgs:\n    view_name: The name of the view to get the screenshot of.\n    The following views are available:\n    - \"Isometric\"\n    - \"Front\"\n    - \"Top\"\n    - \"Right\"\n    - \"Back\"\n    - \"Left\"\n    - \"Bottom\"\n    - \"Dimetric\"\n    - \"Trimetric\"\n    width: The width of the screenshot in pixels. If not specified, uses the viewport width.\n    height: The height of the screenshot in pixels. If not specified, uses the viewport height.\n    focus_object: The name of the object to focus on. If not specified, fits all objects in the view.\n\nReturns:\n    A screenshot of the active view.\n","inputSchema":{"properties":{"focus_object":{"anyOf":[{"type":"string"},{"type":"null"}],"default":null,"title":"Focus Object"},"height":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Height"},"view_name":{"enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"},"width":{"anyOf":[{"type":"integer"},{"type":"null"}],"default":null,"title":"Width"}},"required":["view_name"],"title":"get_viewArguments","type":"object"},"name":"get_view"},{"description":"Insert a part from the parts library addon.\n\nArgs:\n    relative_path: The relative path of the part to insert.\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when visual feedback is not needed,\n        e.g. for intermediate steps in a longer sequence of changes.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n        Pick the view that best shows the change being made.\n\nReturns:\n    A message indicating the success or failure of the part insertion and a screenshot of the object.\n","inputSchema":{"properties":{"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"relative_path":{"title":"Relative Path","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["relative_path"],"title":"insert_part_from_libraryArguments","type":"object"},"name":"insert_part_from_library"},{"description":"Get all objects in a document.\nYou can use this tool to get the objects in a document to see what you can check or edit.\n\nArgs:\n    doc_name: The name of the document to get the objects from.\n    include_screenshot: Whether to return a screenshot of the document (default True).\n        Set to False to save tokens when only the object data is needed.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n\nReturns:\n    A list of objects in the document and a screenshot of the document.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name"],"title":"get_objectsArguments","type":"object"},"name":"get_objects"},{"description":"Get an object from a document.\nYou can use this tool to get the properties of an object to see what you can check or edit.\n\nArgs:\n    doc_name: The name of the document to get the object from.\n    obj_name: The name of the object to get.\n    include_screenshot: Whether to return a screenshot of the document (default True).\n        Set to False to save tokens when only the object data is needed.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n\nReturns:\n    The object and a screenshot of the object.\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"obj_name":{"title":"Obj Name","type":"string"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","obj_name"],"title":"get_objectArguments","type":"object"},"name":"get_object"},{"description":"Get the list of parts in the parts library addon.\n    ","inputSchema":{"properties":{},"title":"get_parts_listArguments","type":"object"},"name":"get_parts_list"},{"description":"Close and re-open a document to pick up external file changes.\n\nUse this AFTER the document's .FCStd file has been modified by\nsomething outside of FreeCAD's GUI process — for example, a\nheadless `freecadcmd` script that edited and saved the file. The\nopen GUI document is otherwise unaware of on-disk changes; this\ntool closes the stale in-memory copy and reopens the file from\ndisk so the GUI shows current geometry.\n\nArgs:\n    doc_name: The name of the open document to reload. Must match\n        the name shown by ``list_documents``.\n\nReturns:\n    A message confirming the document was reloaded, or describing\n    the failure (document not loaded, no associated file, etc).\n    FreeCAD names the reopened document after the file stem, which\n    can differ from ``doc_name`` (\"HandleConcept3D\" saved as\n    handle-concept-3d.FCStd reopens as handle_concept_3d); the reply\n    names the document you should use from then on.\n\nExamples:\n    ```json\n    {\n        \"doc_name\": \"chassis\"\n    }\n    ```\n","inputSchema":{"properties":{"doc_name":{"title":"Doc Name","type":"string"}},"required":["doc_name"],"title":"reload_documentArguments","type":"object"},"name":"reload_document"},{"description":"Get the list of open documents in FreeCAD.\n\nReturns:\n    A list of document names.\n","inputSchema":{"properties":{},"title":"list_documentsArguments","type":"object"},"name":"list_documents"},{"description":"Get RPC and FreeCAD GUI-dispatch health.\n\nThis tool does not use FreeCAD's GUI thread, so it remains available after\na GUI operation times out. A ``stuck`` state identifies the operation that\nis still running and indicates that FreeCAD may need to be restarted.\n``version_check`` is \"ok\" or says whether the addon or the server needs\nupdating.\n","inputSchema":{"properties":{},"title":"get_rpc_statusArguments","type":"object"},"name":"get_rpc_status"},{"description":"Run the CalculiX solver on an existing Fem::FemAnalysis container and return summary results.\n\nPrerequisites in the document, all created with `create_object`:\n- A Part-derived solid (e.g. Part::Box, PartDesign::Body) acting as the geometry.\n- A Fem::AnalysisPython container.\n- A material: type \"Fem::MaterialCommon\" with analysis_name set (built with\n  ObjectsFem.makeMaterialSolid) and its Material given as a dict with units,\n  e.g. {\"Name\": \"Steel\", \"YoungsModulus\": \"210 GPa\", \"PoissonRatio\": \"0.3\",\n  \"Density\": \"7900 kg/m^3\"}. A dict read from the material library can\n  come back empty; give the values.\n- A mesh: type \"Fem::FemMeshGmsh\" with analysis_name, Shape (the geometry)\n  and CharacteristicLengthMax / CharacteristicLengthMin; it is generated\n  when created. A section needs several elements across its thickness,\n  or bending stress comes out far too low.\n- At least one Fem::ConstraintFixed and one Fem::ConstraintForce (or\n  ConstraintPressure) whose References are faces of the geometry.\n- Set Force with its unit, e.g. \"1000 N\": create_object/edit_object reject\n  unitless values. In existing documents and execute_code, a plain number\n  uses millinewtons, so Force = 1000 applies 1 N. The force acts along the\n  normal of the loaded face unless Direction links an edge or face;\n  Reversed flips it.\n\nA SolverCcxTools is auto-created if the analysis has none. The reply\nlists mechanical loads captured in the same GUI operation as the solve\n(in N and MPa, with faces and direction). A failed load read stops the solve.\nDirection can be set to {\"object_name\": \"Beam\", \"edge\": \"Edge1\"}.\n\nThe solver runs synchronously on the FreeCAD GUI thread and blocks all\nother RPC calls for its duration; do not fan out parallel requests.\n\nReturns max von Mises stress (MPa), max/min displacement (mm), node count,\nand the working directory CalculiX wrote to. On failure, returns the\nprerequisite-check or solver error along with the working directory for\ntriage.\n\nArgs:\n    doc_name: Name of the FreeCAD document.\n    analysis_name: Name of the Fem::AnalysisPython object.\n    timeout: Seconds to wait for the solver (default 600).\n    include_screenshot: Whether to return a screenshot of the model (default True).\n        Set to False to save tokens when only the numeric results are needed.\n    view_name: The view orientation of the returned screenshot (default \"Isometric\").\n","inputSchema":{"properties":{"analysis_name":{"title":"Analysis Name","type":"string"},"doc_name":{"title":"Doc Name","type":"string"},"include_screenshot":{"default":true,"title":"Include Screenshot","type":"boolean"},"timeout":{"default":600,"title":"Timeout","type":"integer"},"view_name":{"default":"Isometric","enum":["Isometric","Front","Top","Right","Back","Left","Bottom","Dimetric","Trimetric"],"title":"View Name","type":"string"}},"required":["doc_name","analysis_name"],"title":"run_fem_analysisArguments","type":"object"},"name":"run_fem_analysis"}]}}}
