# Operating manual

> Docs index: https://flone.ai/llms.txt · Edition: test period · Updated 2026-11-26
> For agents that are already connected. How to connect: https://flone.ai/agents.md.
> Rules you must follow: https://flone.ai/agents/rules.md.
> This page describes the test service at `https://api.flone.app` (MCP at `/mcp`, the `flone` tool, plain HTTP).
> The tool definitions and the
> `instructions` you receive from the server are authoritative; where they differ from this page, follow them.

## 1. The loop

1. `phone_context`: the phone's state and anything waiting for the user.
2. `phone_observe`: what is on screen now. You get an `observation_id`.
3. One `phone_act` with that `observation_id`.
4. Read the result, including its `next` field. Observe again to check what actually happened.
5. Repeat from 2. When the user's whole task is done, or cannot be done, call `phone_finish`.

Call tools one at a time. Never send two actions in parallel. One observation supports one action.

Without the MCP server in your tool list, call the same tools with the `flone` tool:
`python3 FLONE call <tool> '<JSON arguments>'` (FLONE is the path printed by `install`), or over plain HTTP with
`POST https://api.flone.app/api/v1/tools/<tool>` (path B of https://api.flone.app/agents.md). The results are the same.

## 2. Tools

| Tool | Use | Main inputs |
| --- | --- | --- |
| `phone_context` | Read the phone's state: online, who holds control, the permission policy, capabilities, the last action's receipt and actions waiting for the user's confirmation. Changes nothing. Call it first. | none |
| `phone_observe` | The screen: elements, an `observation_id`, and by default a JPEG screenshot | `screenshot` (default true), `ui` (default true) |
| `phone_act` | Propose one action, bound to your latest observation | `action` (with `kind` and `observation_id`), optional `intent`, `expect`, `timeout_ms` |
| `phone_finish` | Release control of the phone when the task is done or cannot be done | `outcome` (`succeeded` or `failed`), `summary` |

Action kinds in `phone_act`: `tap`, `swipe`, `text`, `key`, `launch`, `wake` and `sleep`. Prefer an element
`target` over coordinates for `tap` and `text`. Check the tool's input schema for the exact fields.

Common `action` shapes (each also takes the `observation_id` of your latest observation):

| Kind | `action` |
| --- | --- |
| Open an app | `{"kind": "launch", "package": "com.android.settings", "observation_id": "..."}` |
| Tap an element | `{"kind": "tap", "target": {"id": "e5"}, "observation_id": "..."}` |
| Press a key | `{"kind": "key", "key": "HOME", "observation_id": "..."}` (also `BACK`, `ENTER`, `DEL`, `RECENTS`) |
| Type text | `{"kind": "text", "text": "hello", "observation_id": "..."}` (types into the focused field; tap the field first) |
| Swipe | `{"kind": "swipe", "x": 200, "y": 800, "x2": 200, "y2": 300, "observation_id": "..."}` |

With the `flone` tool, a whole call looks like:
`python3 FLONE call phone_act '{"intent": "Go back home", "action": {"kind": "key", "key": "HOME", "observation_id": "<from phone_observe>"}}'`.

`intent` says in one sentence what the action is for. Use it on every action.

## 3. Reading the screen

- `width` and `height`, element bounds and the `x`/`y` of actions all use the same coordinate space. If the
  screenshot size differs from `width`/`height`, scale positions from the image to that space.
- Observe before every action and again afterwards. An `observation_id` supports one action; an action on an older
  observation is refused as stale.
- `restricted: true` means the screen is withheld, and `restricted_reason` says why. Follow the result's `hint`:
  - `screen_off` or `keyguard_locked`: propose `kind=wake` with this observation. FLONE does not unlock a PIN,
    pattern or fingerprint lock; if the phone stays locked, ask the user to unlock it.
  - FLONE itself, system UI, a protected app (such as a bank or wallet) or a screen that cannot be identified:
    press HOME or open the target app.
  - A system permission request: ask the user to allow or deny it on the phone. FLONE does not answer it.
- `mode: "visual"` means the app exposes no readable layout. Act from the screenshot with coordinates, and tell the
  user once that you are working from screenshots, which may be slower.

## 4. Acting

- `executed` means the action was performed on the phone. It does not prove the task succeeded: check the screen.
- `uncertain` means FLONE cannot tell whether the action reached the phone. Observe and check before anything else.
  Never repeat it blindly: a repeated "Send" can send twice.
- If an element target is not found, the result may list `candidates` that look similar. Observe again and choose.
- Never type passwords.
- Protected apps cannot be opened by `launch` or by tapping their icon. Do not try other ways.

## 5. Confirmations

Sending, deleting, paying, granting and similar actions wait for the user to approve. FLONE waits up to about 45
seconds before answering. Transfers are refused outright and cannot be approved.

- `pending_confirmation`: tell the user what the action is and ask them to approve or reject it in the FLONE app on
  the phone. The phone shows a notification; the user taps **Allow** or **Reject**, and verifies it is them before
  allowing if the phone has a screen lock. Users signed in to a FLONE account can also use the `confirm_url`.
  Never open, tap or complete a confirmation yourself: FLONE's screens are off-limits to you.
- A request that nobody decides within 10 minutes can no longer be approved. Observe again and propose the action
  again if the user still wants it.
- After they approve, observe again and propose the same action again.
- If the user rejects it, the result says so (`next` is `stop`). Do not resubmit it in another form.
- A "yes" typed in the chat never replaces the user's own approval.

## 6. Sharing the phone with the user

- If the user touches the screen, FLONE yields to them. The result says how many seconds to wait
  (`retry_after_seconds`) before observing again. If it keeps happening, ask the user whether they are using the phone.
- If the user has taken over in FLONE, wait until they hand control back.

## 7. Ending

- Call `phone_finish` once, with a short `summary`, when the whole task is done or cannot be done. Report
  `succeeded` only if the latest observation shows it.
- Tell the user what you did, what you could not do and why, and anything left for them.

## 8. Results

`phone_observe` and `phone_act` results carry `next`:

| `next` | What you do |
| --- | --- |
| `act` | The observation is ready: propose one action. |
| `observe` | Observe again before anything else (after `executed`, `uncertain`, a stale observation, or a wait). |
| `wait_user` | The user has to approve or act on the phone. Tell them; then observe again. |
| `ask_user` | Tell the user what is needed (unlock the phone, answer a system prompt, hand back control). Observe again when they say it is done. Do not poll. |
| `stop` | Stop and hand control back to the user. |

Each result also has `outcome` and, when refused, `reason` and `message`. Read them, and tell the user plainly
when something failed or was refused.

## 9. Off-limits

Whatever the phone allows, never use FLONE for these. Several are blocked by FLONE; the rest depend on you.

- FLONE itself, and any page showing flone.ai or flone.app.
- System UI, lock screens, biometric and credential prompts, app installers, permission dialogs and security settings.
- AI assistant apps; banking, wallet, payment, brokerage and crypto apps; password managers; authenticators.
- Password fields, card numbers, CVV and 3-D Secure pages.
- Transfers to people, red packets, withdrawals, top-ups, gift cards and crypto, in any app.

Do not look for another way to reach these (another app, coordinates, settings changes). Hand back to the user.

## Coming later

The full tool set and the formal connection described in the FLONE spec draft are not available in the test
period. This page will be updated when they are.
