PhiaUiDesign.Mcp.Tools (phia_ui v0.1.17)

Copy Markdown View Source

Implements all 15 MCP tool handlers for the PhiaUI Design server.

Each tool function receives parsed arguments and the server state, returning {result_map, updated_state}. The result map follows the MCP content format: %{"content" => [%{"type" => "text", "text" => ...}]}.

Summary

Functions

Execute a tool by name. Returns {result, state}.

Functions

execute(tool_name, args, state)

Execute a tool by name. Returns {result, state}.