Mobilens 中文

Use with your agent

Create a draft with MCP

Download and unzip the local server. In your agent’s MCP settings, use node as the command and the full path to mobilens-mcp.cjs as its argument. Requires Node.js 20 or newer.

Use your own agent

Give your agent the screenshot or the unzipped reference task. Ask it to call reproduce_reference with backend local, implement the layout and interactions, then package the source with implement_draft.

Use the hosted agent

Ask your agent to call reproduce_reference with backend hosted and attach your screenshot or description. Mobilens generates the source and returns the draft.

Save the returned .mobilens-draft.json file and choose Import draft in the canvas to try it.

Hosted API requests

Send a JSON description or up to five screenshots. The response contains the draft in the draft field.

curl https://47.236.193.17/api/v1/reproductions \
  -H 'Content-Type: application/json' \
  --data '{"lang":"en","kind":"control","text":"Create a two-handle price range slider."}'
  1. 1

    Open a flow or control

    Try it on the live phone first. Pick a screen to see that state.
  2. 2

    Use it in your project

    Give your coding agent the component’s source and usage example, or use the prompt on its detail page when available.
  3. 3

    Check the report

    The agent ends by listing every state and rule and how it checked each one. A state missing from that list is a state it skipped.

What's in a prompt

The files
Each component and every control it uses, with theme.ts, exactly as on the Code tab.
How to connect it
The Usage example: where your backend plugs in.
Every state
What each state looks like, when it happens and its rules.
Accessibility
What screen readers, autofill and Reduce Motion must get.
A finish check
The agent lists every state and rule and says how it verified each one.