Before you start
This tutorial picks up where Chat and inspect tool calls ends. If you came here directly, connect the Excalidraw demo server as in Start testing, open Playground, and sendDraw a rectangle with the text Hello inside it.
Use any pane that shows the Hello rectangle. The screenshots use Claude. If no pane shows a widget, follow Compare clients to check which tools the models called.
The steps use the Excalidraw widget: the Hello rectangle, its canvas, and the create_view tool. With your own server, the widget toolbar, Edit input & output, and If the widget is blank work the same, but your widget’s content and tool names differ.
Find the widget toolbar
In a pane that shows the Hello rectangle, find the row of icons above the rectangle. This is the widget toolbar.
From left to right, the icons are Inline, PiP, Fullscreen, Data, Sandbox, and Edit input & output. Hover an icon to see its name. Some widgets add Model Context (MCP Apps) or Widget State (ChatGPT Apps) after Data.

Open the widget in fullscreen
Select Fullscreen.The widget fills the window: the Excalidraw toolbar is at the top, Open in Excalidraw at the top right, and the Hello rectangle in the middle.

Draw a second rectangle
Press R to pick the rectangle tool, then drag on an empty part of the canvas.A new, empty rectangle appears where you dragged. It is selected, and a style panel opens on the left with Stroke, Background, and other options.
To leave fullscreen, at the right end of the bar at the top of the window, select Exit fullscreen (×).

Check the tool input and result
Back in the same pane, select Edit input & output. Two JSON editors open. They show the original
create_view call from your prompt, not the rectangle you just drew. Your drawing doesn’t change them, because the widget keeps its own state.- INPUT is the argument the model sent to
create_view. Check that theelementsstring contains a rectangle whoselabeltext isHello. If the original Hello rectangle looks wrong, this is the first place to look. - RESULT is what the server returned. In the example run, under
_meta,ui/resourceUriisui://excalidraw/mcp-app.html, the widget the pane rendered.
If the widget is blank
- Look at the Sandbox icon. If it shows a number, the sandbox blocked requests. Select Sandbox and start with Findings.
- Check that the tool declares a widget. In the left rail, select the tool under Tools and open Metadata: it should have
ui→resourceUri(or the olderui/resourceUri) with aui://URI. Without it, the client has no widget to render. - In the JSON-RPC log, select the Apps filter and check that the widget sent
ui/initializeand receivedui/notifications/tool-result.
Next
Compare clients to see how the same prompt plays out in each pane.Related
- Playground reference: the widget toolbar and the Sandbox panel.

