# Storeman > Storeman is a warehouse / logistics management system (orders, picking, stock, shelves, products, customers, > client-defined record types). Each client has its own domain and data. This file tells AI agents how to work in it. ## If you are an AI agent driving the browser (Claude in Chrome, computer use, other browser agents) Do not operate Storeman by scrolling, taking screenshots and clicking. Use **Storeman Autopilot**: the same actions as the screens, as data, done visibly on the user's screen, each step logged and undoable by a manager. 1. Activate it (once per tab): - JavaScript: `window.storemanAutopilot.activate()` - WebMCP (navigator.modelContext): tool `storeman_activate_autopilot` - No JavaScript: the hidden button "Activate Storeman Autopilot (for AI agents)" (`#storeman-autopilot-activate`) The Storeman logo turns into a robot and a banner tells the user an agent is working. 2. Get the map once: `storemanAutopilot.schema()` (WebMCP `storeman_schema`) -> every list / record screen (route + params to open it), its actions with JSON Schema params and result shapes, the core actions and custom pages. 3. Read the screen: `storemanAutopilot.describe()` -> route, screen actions, every tagged button / field / tab / menu item / automation button (with values and options), open dialogs and table rows. No scrolling needed. 4. Act: `await storemanAutopilot.run(action, args)` -> `{ok, result, requests, code, message}`. - core: `navigate {route|path}`, `click {tag}`, `fill {tag, value}`, `upload {tag, files:[{name,type,base64}]}`, `confirmDialog`, `cancelDialog`, `describe` - every list screen (orders, products, customers, shelves, order lines, picking, dynamic records...): `list.rows`, `list.page {page}`, `list.search {text}`, `list.filterFields`, `list.filter {conditions: [{group, field, value | from+to}]}` (advanced search, several groups), `list.select {ids|all}`, `list.open {id}`, `list.runButton {key, ids|all}` - every record screen (order, product, customer, dynamic record, picking...): `record.get`, `record.set {fields: {key: value}}`, `record.save`, `record.runButton {key}` - a custom page (`navigate {route: "page", params: {name}}`): `page.info`, then the page's own actions `page.` - screen actions of a screen (in `describe().screenActions`), e.g. on the orders list: `orders.list`, `orders.select`, `orders.setSituation {orders:[ids], situation}`, `orders.setStatus {orders:[ids], status}` - No JavaScript: write `{"action": "...", "args": {...}}` into `#storeman-autopilot-command`, press `#storeman-autopilot-run`, read `#storeman-autopilot-output`. ## Rules - Never invent ids or values; read them with `describe()` / `orders.list` first. - Before a bulk change (many orders / products) tell the user exactly what will change and get an explicit OK. - Settings, users, permissions, security, MCP keys and the automation builder are closed to agents (HTTP 403 `autopilot_blocked`). Ask a manager. For automations, reports and data questions use the Storeman MCP server. - On HTTP 429 `autopilot_rate_limited` wait `retry_after` seconds. Do not repeat a failing step blindly. - Agents that drive the screens without Autopilot are detected and their changes may be refused (HTTP 428 `use_autopilot`). ## Identify yourself - an agent never acts as a person For the security of the users, an agent may not pass itself off as a human: - Work only through Autopilot: it tells Storeman, on every request, that an AI agent is acting and for which user. - Never press "I'm human" / verify a passkey, never sign in, sign out, change passwords or act as another user. Those are for the person only. - Everything you send (including a support ticket) is recorded as sent by an AI agent for the signed-in user. You cannot change who it is from or where the reply goes. ## The Autopilot log: everything you do can be traced and undone Every Autopilot step is one action in Storeman's MCP log (source `autopilot`, your Autopilot session, the step and the action name), with every row it changed. A manager can trace what an agent did and undo a wrong decision - one step, a whole session, everything of a user, or back to a point in time (Settings -> MCP log). So: one clear action per step, no "try and see" writes, and tell the user what you changed. ## Reporting a problem (support ticket) If an Autopilot tool does not work as it should (an error, a wrong result, an action that is missing or does not match the screen), open a detailed ticket - do not work around it by driving the screens. 1. Collect the facts: the action and args you sent, the result (`ok`, `code`, `message`), what you expected. 2. Repeat it once at most, with `describe()` before it, to make sure it was not your mistake (wrong id / tag / screen). 3. Show the report to the user and send it only after their explicit OK. 4. Send it with the core action `support.report`: ```json { "action": "support.report", "args": { "summary": "one line - what does not work", // required "action": "orders.setSituation", // required: the Autopilot action that failed "args": {"orders": [3057], "situation": 4}, // what you sent (ids only, no personal data) "expected": "order 3057 moves to situation 4", // required "actual": "ok:false, code server_error, the order did not move", // required "code": "server_error", // the result code "message": "the result message", "steps": ["navigate orders", "orders.select {orders:[3057]}", "orders.setSituation ..."], // required, in order "impact": "blocking", // blocking | workaround | minor "agent": "your name / product, e.g. Claude in Chrome", "userApproved": true // required: true only after the user's OK } } ``` The result is `{sent: true, reference}` - give the reference to the user. Storeman adds the screen, your Autopilot session and its last steps by itself; the reply goes to the user's email. At most 3 tickets per 10 minutes. Never put passwords, tokens or full personal details (cards, ID numbers) in a ticket.