Fine Structure
ai.finestructure/fine-structure
Build and host full-stack apps from a prompt, with agents that reach you on WhatsApp and email.
- add_custom_domain — Attach or replace the app custom domain through the same Fine Structure Studio custom-domain flow. Returns exact DNS verification and routing records for the user to configure at their DNS provider.
- add_file_change — Stage one file upsert or delete inside a change set. Does not modify the live app until apply_change_set. Paths follow the Fine Structure app file API, documented at https://finestructure.ai/api/mcp/d
- add_knowledge_document — Add a document to a notebook: plain text, or a small file (PDF, Word, text, audio) as base64, up to 10 MB. It is processed in the background (audio is transcribed); list_knowledge_documents shows when
- add_knowledge_note — Write a note into a notebook; agents and apps answer from it like from a document.
- agency_create_claim_link — Agency mode only. Create a client claim link for an existing app owned by the agent. The client must log in with the invited email before ownership transfers.
- agency_create_client — Agency mode only. Create or update a client record for an account-level agent. This does not create a verified Fine Structure user account and does not transfer ownership.
- agency_create_client_app — Agency mode only. Create a new app owned by the agent, start generation, and create a claim link for the client. Ownership transfers only when the invited client logs in with the same email and accept
- agency_get_claim_status — Agency mode only. Inspect one handoff status without exposing the raw claim token.
- agency_list_clients — Agency mode only. List client records and app handoff status for the authenticated agent.
- apply_change_set — Apply a staged change set to the app. Creates a Saved Version before applying. Blocks on validation errors unless force=true.
- apply_knowledge_redaction — Redact the chosen findings of a scan: approved maps each document id to the finding ids to replace. The original text is kept, so revert_knowledge_redaction can undo it.
- archive_agent_goal — Retire a goal: its runner stops and never runs again, and the goal stays readable. Use this when the owner asks to delete a goal.
- archive_agent_task — Remove a scheduled task from the agent's schedule. It never runs again and stays readable in the history. Use this when the owner asks to delete or cancel a task.
- archive_agent_trigger — Retire a trigger: it never starts the agent again and stays readable. Use this when the owner asks to delete a trigger.
- ask_knowledge_notebook — Ask a notebook a question; the answer comes from its documents, with sources. Waits up to 25 seconds for the answer, otherwise returns the query_job_id for get_knowledge_answer. Without chat_session_i
- attach_agent_whatsapp — Connect a platform WhatsApp number to one of the account's agents, so the owner can message that number and reach that agent. Requires the owner to be verified first. Take phone_number_id from get_age
- cancel_agent_run — Cancel one run in progress, for example a reply the agent is still working on. Work it handed to other agents is cancelled with it. Take run_id from list_agent_activity or get_agent_task.
- check_domain_verification — Check Fine Structure custom-domain verification and SSL status for the configured custom domain, then save the latest status.
- check_subdomain_available — Check whether a platform subdomain can be claimed before calling set_app_subdomain. Returns available plus a status of available, invalid, reserved, taken, current, or empty, with the exact reason. Pa
- compare_current_to_version — Compare the current app files to a Saved Version and return compact per-file diffs.
- compare_saved_versions — Compare two Saved Versions and return per-file additions, removals, modifications, and compact diffs.
- configure_domain_redirects — Configure custom-domain redirect policy: primary domain, optional www/root redirect, and HTTPS enforcement.
- configure_integration — Store safe non-secret integration metadata for an app. Use set_secret for API keys/tokens.
- confirm_owner_phone_verification — Confirm the 6-digit code the owner received on WhatsApp from start_owner_phone_verification. On success the owner is verified: agents can message them, and platform numbers become connectable.
- create_ab_test — Create a native Fine Structure A/B test between existing app pages. Use update_app first if a variant page still needs to be generated. Creates a Saved Version before the change.
- create_agent — Create an autonomous AI agent on the user's Fine Structure account: a standing worker, not a chat session. It gets the platform's default safe tool policy and its own email address, it can read and wr
- create_agent_goal — Give an agent a goal to pursue on its own. It works on it every interval_minutes, at most max_iterations times, under its own permissions, so a step can message people the agent is allowed to reach. E
- create_agent_team — Create a whole team of agents from a template, wired to work together, optionally adapted to the owner's requirements and company name. The new agents start active with the platform's default safe per
- create_agent_trigger — Add a trigger that starts the agent with these instructions: event (event_type such as lead.created, with an optional source), schedule (a schedule object) or watch. Each start is a run under the agen
- create_app — Create a new application from a natural language prompt. The AI generates a complete web app with pages, components, styling, and data models. Returns a job_id - poll get_job_status to track progress.
- create_change_set — Create a staged file change set. Add multiple file changes, validate them as one app state, then apply atomically.
- create_entity_records — Create/insert records in one app entity. Executes directly for the authenticated app owner and returns the created record ids.
- create_entity_schema — Create an entity schema file in entities/<Entity>.json. Creates a Saved Version before writing.
- create_knowledge_folder — Create a folder for notebooks, optionally inside another folder.
- create_knowledge_notebook — Create an empty notebook, optionally inside a folder.
- create_knowledge_upload — Send a file from the user's own computer into a notebook, for a client that can run a command there (Codex, Claude Code, Cursor): a recording to transcribe (.mp3 .m4a .wav .ogg .webm .flac .mp4 .mpeg
- create_org_goal — Add a company-wide goal for the whole agent team to align to.
- create_platform_request — Open a request to the Fine Structure platform team: a bug, a feature request or a question about the platform itself (not about the user's app). Use it when something in the platform blocks you instea
- create_whatsapp_trigger — Save a WhatsApp trigger for record-created events. It is saved switched off and messages no one. Switching it on is done by the owner on the app's Automations screen in Fine Structure.
- delete_ab_test — Delete a native A/B test from an app. Creates a Saved Version before the change.
- delete_entity_records — Delete exact records by ID or exact-match filters. Executes directly for the authenticated app owner; pass expected_count as a safety check to abort on a mismatch.
- delete_secret — Delete one app secret by key.
- detach_agent_whatsapp — Disconnect the owner's WhatsApp route from a platform number. Removes only this account's route; other accounts sharing the number keep theirs.
- disable_whatsapp_trigger — Switch a WhatsApp trigger off: new records no longer send its message. It stays saved.
- discard_change_set — Discard a pending staged change set without changing app files.
- get_ab_test_stats — Get views, unique visitors, conversions, and conversion rates for an A/B test.
- get_agent — Read one agent: name, role, description, persona (its standing instructions), status, email address, WhatsApp number and which capability groups are switched on.
- get_agent_conversation — Read visible messages, answers and result links in an owned agent's conversation. Returns the newest page in chronological order. For older history, pass next_before_id as before_id. For new replies,
- get_agent_task — Check a durable task returned by send_agent_message or list_agent_tasks. Includes the latest execution status and pending approvals, including before a run starts. Task scheduling state is separate fr
- get_agent_whatsapp — Read the WhatsApp state of the connected account: whether the owner's phone is verified, which platform numbers they can connect, and which conversations already route to which agent. Call this first