Skip to Content
DocsAINOX PLATFORM

MCP tool reference

Every tool App Builder's MCP server offers, with its arguments, as the server itself lists them.

This page is rendered from the same table the server answers tools/list with, so it always matches what your client sees. Each tool takes one JSON object of arguments.

Before you call them, two rules apply to every tool:

  • One request, one call. Send one JSON-RPC message per HTTP request. A batch (a JSON array of messages) is refused with HTTP 400, and every request counts once against the key's 120 a minute.
  • Refusals are results. A call the server refuses answers a normal tool result with isError: true and one sentence in content[0].text saying why. Troubleshooting lists them.

resolve_tool_call answers the agent's questionnaires (ask_user) only. It cannot approve or decline a tool call that waits for approval: answer that in App Builder.

Tools

list_apps

List the signed-in account's 50 most recently updated apps in this workspace, newest first. Each app has its ID, title, last update time, and the deployment ID once the app has been published.

Takes no arguments.

get_app

Get one app: its title, link, whether the agent is running, waiting on a tool call, or idle, the tool calls waiting on you, the published deployment with its build status, and its Marketplace listing. siteTakenDown is true when a workspace manager or platform admin took the app's site down and it was not published since: deployment is then null, and the next publish gives the app a new address.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.

create_app

Start a new app: the agent begins building from the prompt in its own sandbox. Returns at once; poll get_app until status is no longer running, then read the reply with list_messages.

ArgumentTypeDescription
promptstringWhat to build or change, in plain language. 1–20,000 characters.

send_message

Send a follow-up prompt to an idle app. Returns at once; poll get_app until status is no longer running, then read the reply with list_messages.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.
promptstringWhat to build or change, in plain language. 1–20,000 characters.

list_messages

Read an app's conversation, oldest first: each message's text and the tools the agent called, without tool inputs or outputs. Use list_files and read_file for the code.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.

resolve_tool_call

Answer the questionnaire the agent is waiting on (an ask_user call in pendingToolCalls from get_app), which resumes the run. Send answers keyed by question ID: the option label for single_select, an array of labels for multi_select, text for text, or null to skip an optional question.

ArgumentTypeDescription
answers{ [id]: string | string[] | null }Answers keyed by question ID.
appIdstringApp ID from list_apps or create_app.
runIdstringrunId of the pending call, from get_app.
toolCallIdstringtoolCallId of the pending call, from get_app.

stop_run

Stop the agent's reply in an app. A tool call it is waiting on stays pending.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.

list_files

List one directory of the app's project. Wakes the app's sandbox if it has stopped.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.
path (optional)stringPath relative to the project root, which is .. default ".".

read_file

Read one text file of the app's project. Wakes the app's sandbox if it has stopped.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.
pathstringPath relative to the project root, which is ..

publish

Publish the app to its site, reusing the app's deployment when it has one. The first publish needs the app's name, which becomes the app's title and the site's subdomain. The build runs after this returns; poll get_app for deployment.status until it is published or failed. Do not call again while a publish is in flight.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.
name (optional)stringThe app's name, required on the first publish and ignored after; it sets the site's address, such as my-app.<host>, numbered when taken. 1–200 characters.

set_marketplace_listing

Share the app's published site to this workspace's Marketplace, where every member can find it with your name and avatar, or take it out with listed false. Listing needs a published site that everyone in the workspace, or anyone with the link, can open; while the first publish is still queued or building it is refused until deployment.status is published, and an app whose site was taken down (siteTakenDown in get_app) is refused until it is published again. categories replaces the whole set (0–5, each 1–30 characters, each named once; a name the workspace already has, in any case, takes that category and its spelling; a category nobody used before is created with the tag icon, which its creator can change in App Settings); omit it to keep the current set. Taking an app out removes its categories, and hides everyone's favorites of it until it is listed again. Calling again with the same values changes nothing.

ArgumentTypeDescription
appIdstringApp ID from list_apps or create_app.
categories (optional)string[]The app's categories, such as ["HR", "Productivity"]; at most 5. at most 5.
listedbooleantrue to list the app, false to take it out.

list_marketplace

List the apps in this workspace's Marketplace, newest first, the same ones the Marketplace page shows for the same filters, including apps colleagues shared with you. query matches app names, owner names, and categories, ignoring case; categoryId keeps the apps in that one category (each app lists its categories with their IDs); scope shared keeps only the apps shared with you. Returns up to limit apps; pass nextCursor back as cursor for the next page.

ArgumentTypeDescription
categoryId (optional)stringKeep the apps in this one category; each app lists its categories with their IDs.
cursor (optional)stringnextCursor from the previous page. 0–512 characters.
limit (optional)integerApps per page. 1–100. default 24.
query (optional)stringMatches app names, owner names and categories, ignoring case. 0–100 characters.
scope (optional)"all" | "shared"shared keeps only the apps shared with you. default "all".

On this page