> ## Documentation Index
> Fetch the complete documentation index at: https://docs.waniwani.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List WebMCP tools

> Lists the environment's MCP tools for AI agents browsing a page that has the chat widget.



## OpenAPI

````yaml /api-reference/openapi.json get /api/mcp/chat/webmcp/tools
openapi: 3.1.0
info:
  title: Waniwani API
  version: 1.0.0
  description: >-
    The HTTP routes the Waniwani SDK and chat widget call. Use them from any
    language. Server routes take a secret `wwk_` API key; chat routes take a
    channel's `wwp_` public key, which is meant to ship in a web page.
servers:
  - url: https://app.waniwani.ai
    description: US region
  - url: https://eu.app.waniwani.ai
    description: EU region
security: []
tags:
  - name: Server API
    description: Called from your server with a secret `wwk_` API key.
  - name: Chat API
    description: Called from a web page with a channel's `wwp_` public key.
paths:
  /api/mcp/chat/webmcp/tools:
    get:
      tags:
        - Chat API
      summary: List WebMCP tools
      description: >-
        Lists the environment's MCP tools for AI agents browsing a page that has
        the chat widget.
      operationId: listMcpChatWebmcpTools
      parameters:
        - schema:
            type: string
            description: >-
              The embed's `wwp_` public key. Required unless an `Authorization:
              Bearer` header carries a key, which makes the response
              uncacheable.
          required: false
          description: >-
            The embed's `wwp_` public key. Required unless an `Authorization:
            Bearer` header carries a key, which makes the response uncacheable.
          name: token
          in: query
        - schema:
            type: string
            description: >-
              Channel id from the embed markup or its cached `/config`. Selects
              the channel's origin lock.
          required: false
          description: >-
            Channel id from the embed markup or its cached `/config`. Selects
            the channel's origin lock.
          name: channel
          in: query
      responses:
        '200':
          description: '200'
          content:
            application/json:
              schema:
                type: object
                properties:
                  tools:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                        description:
                          type: string
                        inputSchema:
                          type: object
                          additionalProperties: {}
                          description: JSON Schema of the tool's arguments.
                        annotations:
                          type: object
                          additionalProperties: {}
                      required:
                        - name
                        - description
                required:
                  - tools
      security:
        - publicKeyAuth: []
components:
  securitySchemes:
    publicKeyAuth:
      type: http
      scheme: bearer
      bearerFormat: WaniwaniPublicKey
      description: >-
        Waniwani public key passed as `Authorization: Bearer wwp_<key>`. A
        channel's public key is meant to ship in a web page.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.