execute_command
Run built-in StarUML commands by their ID to automate tasks like saving, creating, or editing diagrams via the MCP server.
Instructions
Execute any built-in StarUML command by its ID. Use get_all_commands to discover available IDs. Requires staruml-mcp-extension to be installed in StarUML. Install from https://github.com/ezrabrilliant/staruml-mcp-extension
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "execute_command"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Command ID. Examples: 'project:save', 'view:fit-to-window', 'project:new' | |
| args | No | Optional positional arguments passed to the command handler |