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

# Chess

> Play chess against the assistant with view-provided tools

Play chess against the assistant inside the conversation. Pick a side on the lobby screen, pop the board into picture-in-picture, and drag your pieces — the assistant plays the other color. Showcases MCP Apps view-provided tools: the server only opens the board, and the view registers the tools the model uses to play, executing them against a chess.js engine running inside the widget.

Play a game of chess with me.

Chess

![Chess showcase](https://docs.skybridge.tech/images/showcase-chess.png)

> [card] [Try the demo](https://chess.skybridge.tech/try)
>
> Launch the live view.

> [card] [View source](https://github.com/alpic-ai/skybridge/tree/main/examples/chess)
>
> Browse the example code.

## Skybridge APIs used

* [`registerTool`](https://docs.skybridge.tech/api-reference/register-tool) — a single `start_game` tool that opens the board
* [`useRegisterViewTool`](https://docs.skybridge.tech/api-reference/use-register-view-tool) — register `chess_get_board_state`, `chess_get_legal_moves`, `chess_make_move`, and `chess_reset_game` from the view
* [`createStore`](https://docs.skybridge.tech/api-reference/create-store) — synced match state (position, move log, last move) pushed into the model's context and surviving remounts
* [`useDisplayMode`](https://docs.skybridge.tech/api-reference/use-display-mode) — pop the board into picture-in-picture when a side is picked
* [`useCallTool`](https://docs.skybridge.tech/api-reference/use-call-tool) — call server tools from the view
* [`useSendFollowUpMessage`](https://docs.skybridge.tech/api-reference/use-send-follow-up-message) — prompt the assistant to play its move
* [`useToolInfo`](https://docs.skybridge.tech/api-reference/use-tool-info) — read the `start_game` tool output


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