Skip to main content

Tree Examples - Paint

Visualization for the Local Paint MCP Server Example

From the MCP Examples

Step 1

Step 1

This just invokes the get_image MCP Tool every time the function call completes (or in other words Event 28:AI_MESSAGE_COMPLETED basically means every time an AI message is completed).

Step 2

Step 2

  1. In Step 1 we requesst the image from the Local MCP server. As this can take some time, we don't receive the response from the MCP Server in the same node but again via an Event instead.
  2. 21:MCP_TEXT_RESULT is the result we receive from the McpAction and the node injects its text result into the Node Flow.
  3. SetPalAvatarAction receives the text base 64 encoded image and replaces the current Pal Avatar with the image.

Result

We can observe the AI Char drawing with the basic shape-drawing tools (Input: Draw the letter A): Step 2