Files
OrcaSlicer/tools/mcp/tests/replay_basic.json
T
SoftFever 5e426b2cb7 Point MCP name misses at the right catalog and give each argument one name
A tool, Speed Dial action or CAD tool called through the wrong tool is told
where it runs, search_actions ranks a query's words as search_tools does, and
every list replies with items.

Renamed arguments: set_view's target and view are look_at and canvas,
list_widgets' root is target, mouse_gesture's path is waypoints, the presets'
changes is preset_changes, set_height_ranges' layer_config_ranges is ranges,
and the main window is "main" for screenshot and start_recording.

The harness's launch takes --python-scripts to allow Python scripts in the
instance it starts.
2026-11-11 18:31:00 +08:00

21 lines
1.3 KiB
JSON

// Opens a model, changes a print setting, slices and captures the preview: the smallest end-to-end
// check of --mcp-run. Run from anywhere:
// orca-slicer --mcp-run tools/mcp/tests/replay_basic.json --mcp-run-out /tmp/out
{
"orca_replay": 1,
"name": "basic slice",
"vars": {"model": "${replay_dir}/../../../resources/handy_models/OrcaCube_v2.drc"},
"steps": [
{"tool": "wait", "args": {"for": "ready"}},
{"tool": "new_project", "args": {"discard_changes": true}},
{"tool": "set_window", "args": {"size": [1920, 1200]}},
{"tool": "open_files", "args": {"paths": ["${vars.model}"]}, "expect": {"/added": {"eq": 1}}},
{"tool": "set_settings", "args": {"scope": "process", "values": {"wall_loops": 3}}},
{"tool": "get_settings", "args": {"scope": "process", "keys": ["wall_loops"]}, "expect": {"/items/0/value": {"eq": "3"}}},
{"tool": "slice", "expect": {"/status": {"eq": "done"}, "/plates/0/outcome": {"eq": "ok"}}},
{"tool": "set_view", "args": {"tab": "preview", "camera": "iso"}},
{"tool": "screenshot", "args": {"target": "canvas", "save_path": "${out_dir}/preview.png", "overwrite": true, "include_image": false}},
{"tool": "screenshot", "args": {"target": "main", "save_path": "${out_dir}/window.png", "overwrite": true, "include_image": false}}
]
}