Files
vectorcraft/crates
dotCooCoo 295296947e MCP: the Simplify and Smooth sliders show in ui.inspect and answer ui.dialog
The params text of ui.simplifyAuto and ui.smoothAuto and docs/mcp.md say
Object > Path > Simplify and Smooth open the dialogs simplifySlider and
smoothSlider with field `level`, kept by ui.dialog.confirm. The sliders
are a strip over the canvas, not hosted dialogs, so ui.inspect listed no
dialog while one was open and ui.dialog.set and ui.dialog.confirm had
nothing to answer.

- ui.inspect lists the open slider as {id, parent, key, fields: {level}},
  first in `dialogs`, so "top" still names a hosted dialog open over it.
- ui.dialog.set {field: "level", value} moves the slider to a level from
  0 to 100 and previews it. A value outside that range, a value that is
  not a number, another field, or a set while another edit holds the
  interaction is refused and leaves the level as it was.
- ui.dialog.confirm keeps the preview as one undo step, as Enter does,
  and ui.dialog.cancel puts the paths back, as Escape does. A set with
  `action` answers in the same request and replies {dialog, result}.
2026-11-29 08:09:58 -08:00
..