# Piwi > Piwi (https://www.piwi.ai/) is a small game that helps a person think through a big choice. They walk a path of short situations, answer each with no, maybe or yes, and at the end see which road fits them best and why. There is no account and no server: everything is saved in the user's own browser. ## For AI agents Piwi has no server API. Its tools run inside the page and save to the browser that has the page open. To act for the user, open https://www.piwi.ai/ in your browser and call the tools there. Every page has them. - With WebMCP: every page registers its tools with `navigator.modelContext` (`document.modelContext` in newer browsers). - Without WebMCP: every page also puts the same tools on `window.piwi`. Run JavaScript in the page: - `window.piwi.help()` gives a short guide and lists every tool. - `window.piwi.tools` has each tool's name, description and JSON Schema. - `await window.piwi.call("list_paths")` runs a tool and answers with text, exactly as WebMCP would. - The browser console prints a line about `window.piwi` when the page loads. Each tool answers with plain text. When the arguments are wrong, the answer says what to fix; nothing is thrown. ## Make a path for the user, fast 1. Read [the full guide](https://www.piwi.ai/llms-full.txt): the rules for a good path and the JSON Schema of `game`. It is the same text `get_path_instructions` returns, so you can skip that call. 2. Open https://www.piwi.ai/ in your browser. 3. Write the whole path as one JSON object and call `create_path` with `{ game }`. Piwi checks it and walks it two thousand times with made-up walkers. 4. If the answer lists failures, fix all of them and call `create_path` again with the whole path. You have three tries. 5. When it says Saved, open the address it gives you (`https://www.piwi.ai/p/`) in the same tab and leave the path on its Start screen. Tell the user the title. The path is saved in that browser only. The user walks it there. ## Tools Paths: - `get_path_instructions` (reads only): the rules, any question the user saved on the page, and the JSON Schema of a path. - `create_path`: checks, tests and saves a whole path; answers with its address or with the failures to fix. - `list_paths` (reads only): every path's title and id, ready-made or made with AI. Mentor (the user's goals, promises and finished walks): - `get_mentor_brief` (reads only): call first when you act as the mentor; how the mentor speaks and which tool to use when. - `list_walks`, `get_walk` (read only): the walks the user started, and one finished walk in full. - `get_your_things` (reads only): the wheel of life, goals with steps, and things the user said they would do. - `get_talk` (reads only): the last lines said between the user and the mentor. - `mentor_says`: says one line to the user as the mentor, on the Mentor page. - `add_goal`, `add_goal_step`, `set_goal_step_done`, `add_promise`, `set_promise_done`: change goals and promises, only when the user asked or agreed. Exact schemas: `window.piwi.tools`, or the WebMCP tool list. ## Pages - `/`: camp, with every path as a star in the sky. - `/p/`: one path, ready to walk. - `/own`: the user's own question, to have a path written for it. - `/mentor`: wheel of life, goals, promises and talk with the mentor. - `/about`, `/next`: about Piwi, and what comes next. ## Privacy What the user does stays in their browser. A tool you call reads or writes only that browser's storage, and nothing is sent to a Piwi server.