ExVoix.Html.Components (ex_voix v0.3.9)

Provides VOIX framework components for tool and context element.

Summary

Functions

Renders a context element.

Renders a tool element.

Renders a UI resource from mcp-ui.

Functions

context(assigns)

Renders a context element.

Examples

<.context name={@name} content={@content} />

Attributes

  • name (:string) (required) - the name of context.
  • content (:string) (required) - the content of context.

tool(assigns)

Renders a tool element.

Examples

<.tool mcp={@mcp} name={@name} />

Attributes

  • mcp (:atom) (required) - the module of mcp server.
  • name (:any) (required) - the name of tool.
  • item_id (:any) - the id related to item tool.
  • item_label (:string) - the label related to item tool.

ui_resource_renderer(assigns)

Renders a UI resource from mcp-ui.

Examples

<.ui_resource_renderer id="my-script" />

Attributes

  • id (:string) (required) - the id of the element.
  • resource (:string) (required) - mcp-ui resource.