mcp-use TypeScript API
    Preparing search index...

    Function html

    Prefer raw CallToolResult, ReadResourceResult, or GetPromptResult returns. These helpers remain for upgrade compatibility and map to the official wire envelopes.

    • Create an HTML text tool result.

      Parameters

      • content: string

        HTML text.

      Returns ToolContentResult

      Tool result with text/html MIME metadata.

      Prefer { content: [{ type: "text", text: content }] }.