# ApplesauceOS documentation

Build JavaScript automations on your jailbroken iPhone or iPad. Start with a guide, then read the specific function pages you need. No source checkout or SSH required.

## Guides

- [Your first automation](https://mcp.applesauceos.com/doc/start.md) — Create, run and inspect a script in the app.
- [Scripts and projects](https://mcp.applesauceos.com/doc/projects.md) — Organize .cso projects, modules, assets and arguments.
- [JavaScript essentials](https://mcp.applesauceos.com/doc/javascript.md) — Units, results, modules and asynchronous work.
- [Find app elements](https://mcp.applesauceos.com/doc/uihelper.md) — Selectors, waits, text and scrolling.
- [Handle interruptions](https://mcp.applesauceos.com/doc/recovery.md) — Detect known dialogs and verify each transition.
- [Screen and vision](https://mcp.applesauceos.com/doc/vision.md) — Use pixels, OCR, colors and image matching.
- [Objective-C step by step](https://mcp.applesauceos.com/doc/objc.md) — Understand classes, objects, selectors and native results.
- [C functions and memory](https://mcp.applesauceos.com/doc/native.md) — Call known C functions and manage native buffers.
- [Troubleshooting](https://mcp.applesauceos.com/doc/troubleshooting.md) — Diagnose failed steps and uncertain outcomes.
- [Connect an agent](https://mcp.applesauceos.com/doc/mcp.md) — Pair your phone and understand the MCP tools.
- [Automation playbook](https://mcp.applesauceos.com/doc/ai.md) — One Markdown guide for agents building and testing scripts.
- [HTTP workflows and details](https://mcp.applesauceos.com/doc/http-guide.md) — File rules, observations, script arguments and error handling.

## HTTP endpoints

[HTTP endpoint index](https://mcp.applesauceos.com/doc/http.md) covers direct device requests with parameters, responses and curl examples.

## Function reference

[JavaScript API index](https://mcp.applesauceos.com/doc/api.md) lists every documented API with a link to its individual Markdown page. Each entry has arguments, return values and an example.

## Agents

Read [the automation playbook](https://mcp.applesauceos.com/doc/ai.md) first. The MCP get_documentation tool returns exactly that guide. Discover the live tool schemas after pairing; MCP tool names and script function names are different.
