New MCP tool for modifying workspace components and writing changes back to disk via XmlWorkspaceWriter. Full roundtrip: load → edit in-memory → write back.
workspace_edit (DESTRUCTIVE — agent must request confirmation)
Params:
path: string? — path to workspace (default: cwd)
type: string — component type
id: string — component identifier
operations: [{
action: string — add-control, remove-control, move-control, set-label, add-attribute, ...
target: string — path within component (tab/section/control id)
params: object — action-specific parameters
}]
Returns:
modified_files: [string] — list of changed files
Summary
New MCP tool for modifying workspace components and writing changes back to disk via
XmlWorkspaceWriter. Full roundtrip: load → edit in-memory → write back.API
Depends on (platform-metadata)
Implementation notes
TransactionalContextfor buffered writes with rollback on failureFormBuilder/EntityBuilderfor type-safe manipulationXmlWorkspaceWriter— preserve unknown XML, zero diff on untouched files