Examples
Runnable examples
Python and TypeScript SDK scripts, MCP client configs and curl. Set WEBPILOT_URL (here: https://api.webpilot.si) and WEBPILOT_TOKEN; start fixture_site.py for the ones that log in, download or replay. Each file opens as plain text: save it or copy it from the browser.
Python SDK
- python/download.pyClick a download link, wait for the file, read its rows and save it locally.
- python/handoff.pyHand one step (a 2FA code) to a person with a "Your turn" link and wait until they are done.
- python/read_page.pyOpen a page in a read tab, print its text, headings and links (Wikipedia by default).
- python/record_and_replay.pyRecord a checkout, save the run report and JUnit XML, then replay it without an LLM.
- python/vault_login.pyLog in with a vault entry: the password and TOTP never reach your code. Save the session.
TypeScript SDK
- typescript/download.tsTypeScript: click a download link, read its rows, save it with saveFile() (resumable).
- typescript/handoff.tsTypeScript: hand a 2FA step to a person with a "Your turn" link and wait until they are done.
- typescript/package.jsonTypeScript: npm install webpilot-si here, then node read_page.ts (Node 22.18+) or npx tsx.
- typescript/read_page.tsTypeScript: open a page in a read tab, print its text, headings and links; then read it without a tab.
- typescript/record_and_replay.tsTypeScript: record a checkout, save the report and JUnit XML, replay it without an LLM.
- typescript/tsconfig.jsonTypeScript: type-checks the examples against the SDK's sources in the repository.
- typescript/vault_login.tsTypeScript: log in with a vault entry (the values never reach your code), save the session.
MCP clients
- mcp/claude-code.mcp.jsonClaude Code: project-scoped .mcp.json with the token from the environment.
- mcp/claude-code.shClaude Code: add the server with one command (or a project .mcp.json).
- mcp/claude-desktop.jsonClaude Desktop: claude_desktop_config.json through the mcp-remote bridge.
- mcp/codex.config.tomlCodex: ~/.codex/config.toml.
- mcp/cursor.mcp.jsonCursor: ~/.cursor/mcp.json (or .cursor/mcp.json in a project).