Reference MCP 05 / 06
MCP tools
Every Writ Cloud MCP tool, what it does, and when an assistant should use it.
On this page
The Writ Cloud server (writ-cloud) has 40 tools. Your assistant picks them by itself; this
page is for when you want to know what it can do, or you write prompts and skills for it. Each entry
lists the inputs that matter most. writ_help returns the complete reference of any tool.
Choose a tool
| Job | Tool | Use it when |
|---|---|---|
| Read a page, a few pages, or a listing’s top items | writ_scrape | You need the content now. Reading never needs a browser session. |
| Run something already saved | writ_list_workflows, then writ_run_workflow | Always check first. A saved workflow comes before a new build. |
| Turn a site into an API | writ_website_to_api | The site has no usable API and you want an endpoint that lasts. |
| Collect a whole site or a section | writ_crawl_site | You want a dataset to query, export or refresh later. |
| Click, type, sign in or submit | writ_browser_use, then writ_browser_act | The job is a task on a site. Save it with writ_browser_save if it will come back. |
| Watch a page or a price | writ_create_monitor, then writ_wire_monitor | You want an alert, a workflow or an AI task when it changes. |
| Work behind a login | writ_personas | Before any task on a signed-in site. Passwords never go through the chat. |
| Get past a CAPTCHA or a code | writ_browser_ask_user | A security check or a one-time code needs you. |
| Pay on a site | writ_payment | A purchase needs your card. The number never reaches the chat. |
| Answer from data already collected | writ_search_data, writ_workflow_data | The answer may already be in past runs. Nothing runs. |
| Run on a schedule or on an event | writ_set_schedule, writ_create_automation | The job repeats, or follows another job. |
| Fix a run that returns nothing | writ_diagnose_http_workflow, then writ_update_workflow | A saved workflow fails or comes back empty. |
| Run on your own computer | writ_devices | You linked Writ Desktop and want work done there. |
Read
writ_scrape
Reads one page, up to 20 pages, or a listing plus its top items, and returns clean Markdown in the same call (usually 2 to 10 seconds). It also reads pages a plain fetch cannot: pages built by JavaScript, pages that refuse plain requests, and pages behind your sign-in.
Main inputs
-
urlstring - The page to read, or with
top_n, the listing page. -
urlsstring[] - Several pages read together (at most 20), on one site or several.
-
top_ninteger - With
url: also read the listing’s top N item pages (at most 20). -
formatstring defaultmarkdown markdown,html(the raw HTML) orboth.-
render_modestring defaultauto autoopens a browser only when the page needs one;httpnever does;browseralways does.-
persona_idinteger | string - Read as one of your saved sign-ins.
-
use_residentialboolean defaultfalse - Read through a residential address, for a site that refuses servers.
{
"url": "https://news.ycombinator.com",
"top_n": 5
} Build
writ_website_to_api
Turns a website into an API with named functions. It first proposes your matching saved workflows and
ready-made APIs. Then it opens a browser bound to the build, which the assistant drives with the
browser tools until it saves the API with writ_browser_save.
Main inputs
-
urlstring - The page that already shows the data (a search, category or listing page), not the home page. Required unless
build_idis set. -
goalstring - What the API should return or do, with its inputs and fields.
-
build_idinteger - Continues a paused build, with everything it found so far.
-
persona_idinteger - The sign-in to build with, for an app behind a login.
-
save_asstring - Name of the saved API.
-
skip_existingboolean - Skip the proposal of your own matching workflows.
-
skip_marketplaceboolean - Skip the ready-made APIs and build fresh.
-
execution_targetstring cloud, or a linked desktop’s id to build there.
writ_discovery_status
The status of a build: succeeded, failed, cancelled, or needs_guidance (paused and ready to continue with writ_website_to_api and its build_id). See Continue a build.
Main inputs
-
build_idinteger required - The build’s id.
-
waitboolean - Hold one call until the build is done or paused.
-
timeout_secondsinteger - Ceiling for
wait, at most 75.
{
"build_id": 4703
} writ_record_website
Records a repeatable task as a workflow. It opens the same browser as writ_browser_use,
labelled with your goal. A goal that asks for an API opens as a writ_website_to_api build
instead.
Main inputs
-
goalstring required - What should be recorded, in plain words.
-
urlstring required - The page to start on.
-
persona_idinteger | string - The sign-in to record with.
-
auth_modestring reusea saved session, orfresh_loginto record a new login.
Browser
A browser session is a real browser on Writ’s servers (or on your linked desktop). Writ runs no AI inside it: your assistant decides every step. Everything it does is recorded, so the session can be saved as a workflow that replays without a browser. An open cloud browser is billed until it is saved or closed.
writ_browser_use
Opens a browser for a task on a site and returns the first page.
Main inputs
-
urlstring required - The page to open.
-
persona_idinteger | string - Sign in as this saved identity. The password stays in Writ.
-
goalstring - A label for the run log. It performs no step by itself.
-
execution_targetstring cloud,auto(your linked desktop when online, else cloud) orlocal(your desktop only).-
use_residentialboolean - Open on a residential address.
-
residential_countrystring - Two-letter country for that address, such as
us.
writ_browser_act
Runs one batch of actions (navigate, click, fill, select, scroll, wait, extract and more) and returns
the fresh page. A value written as {{name}} with its real value in inputs becomes an input of the saved workflow.
Main inputs
-
session_idstring required - The session from
writ_browser_use. -
actionsobject[] required - The actions, in order, for example
{"action": "click", "selector": "#login"}. -
inputsobject - Values for
{{name}}placeholders, kept out of the recorded steps.
writ_browser_context
Re-reads an open session without acting.
Main inputs
-
session_idstring required - The open session.
-
sectionstring defaultpage page(fields, buttons, links, cleaned page),lists(the page’s repeating rows) ormap(what the build found so far).
writ_browser_network
Searches or reads the requests the page made: the site’s own API, as opposed to its HTML.
Main inputs
-
session_idstring required - The open session.
-
operationstring defaultsearch searchlists matching calls;detailreturns one call in full.-
querystring - Text to match in the method, URL, status or bodies.
-
indexinteger - The call to read, with
detail.
writ_browser_compose
Shapes what the session will save: named API functions (preferably HTTP flows that run without a browser), declared inputs and extra steps. Each function is tested as it is defined.
Main inputs
-
session_idstring required - The open session.
-
operationstring required define_function,test_function,add_flow_step,set_inputs,add_steps,list, and the matching remove and replace operations.-
payloadobject - The operation’s arguments.
writ_help('writ_browser_compose')lists each shape.
writ_browser_save
Saves the session as a workflow and closes the browser. The answer includes a ready run_example to prove it on two different inputs.
Main inputs
-
session_idstring required - The open session.
-
namestring - Short workflow name. Defaults to the goal.
-
save_tostring desktop,cloudorboth. Defaults to where the browser ran.-
keep_openboolean defaultfalse - Keep the browser open after saving.
-
contribute_to_catalogboolean - The Marketplace choice for the saved API. Left out, the rules decide: a build made with your own AI is free, so it is submitted to the Marketplace for review once its functions pass a proof run.
truesubmits it;falsekeeps it private, on Starter and up or during a trial. A build that signs in with your account is never listed without your yes. See Free builds go to the Marketplace.
writ_browser_ask_user
Hands the session to you: you solve a security check in the live browser, give a one-time code, sign in on the page, or answer a question. The first call returns a link and a message for you; later calls wait up to 60 seconds for your answer.
Main inputs
-
session_idstring required - The open session.
-
kindstring captcha,twofa(Writ types the code; it never reaches the chat),sign_inorquestion.-
questionstring - One short sentence, for
question.
writ_browser_cancel
Closes a session. Unsaved work that did more than visit pages is saved as a workflow first, and the answer names it.
Main inputs
-
session_idstring required - The session to close.
-
discardboolean defaultfalse truethrows the unsaved work away instead of saving it.
writ_browser_sessions
Lists your open browser sessions, so the assistant resumes one instead of opening a second browser.
Main inputs
-
include_closedboolean defaultfalse - Also list recently closed sessions.
Sign-ins, payments and devices
writ_personas
Your saved sign-ins on websites. With no sign-in for a site, the answer carries a link to a small Writ window where you enter the login yourself; the assistant then waits for you to save it.
Main inputs
-
actionstring required list,get,request(a link for a new sign-in),wait,sign_in(refresh the session) orrecord_login.-
domainstring - With
list: only sign-ins for this site. Withrequest: the site. -
link_idstring - With
wait: the link to wait for (up to 75 seconds per call). -
whystring - With
request: one line you read in the window. -
persona_idinteger - For
get,sign_inandrecord_login.
writ_payment
Pays on a site with one of your cards. You approve each purchase in a Writ window, with a maximum
amount; the card is typed only on that store’s site. Not listed on a connection with ?payments=off.
Main inputs
-
actionstring required request(ask your approval),wait,checkout(pause at the order button for your confirmation),fillorlist.-
sitestring - With
request: the store’s domain. -
max_amountnumber - The most the purchase may charge, tax and shipping included.
-
purposestring - One line you read when approving.
-
grant_idstring - The approval returned by
request.
writ_devices
Your linked Writ Desktop computers. use points this connection at one of them: runs,
browser sessions, sign-ins, data and monitors then happen there. Sign-ins on a desktop come from its
own vault and never leave it.
Main inputs
-
actionstring defaultlist list,use,clear,monitorsordatasets.-
devicestring - With
use: the desktop’s id or exact name.
Workflows
writ_list_workflows
Lists your saved workflows and APIs with their inputs, the values each input accepts, their schedule, and whether they are pinned as tools.
Main inputs
-
searchstring - Filter by name or description, for example a site name.
writ_run_workflow
Runs a saved workflow by name or id and returns its data. It waits by default.
Main inputs
-
workflowstring - Workflow name, or use
workflow_id. A desktop workflow islocal:<id>. -
inputsobject - The run’s inputs. Top-level fields work too.
-
function_namestring - Run one function of an API, with the sign-in it needs.
-
outputobject - The answer’s shape:
shape(envelope,table,records,record) andfieldsto keep only what you need.
Run controls (every run tool)
-
waitboolean defaulttrue - Wait for the result.
-
timeout_secondsinteger - How long to wait, at most 85. A run still going then answers
runningwith its id. -
max_ageinteger default0 - Reuse a result younger than this many seconds. A reused result answers at once and costs nothing.
-
persona_idinteger | string - Run as another saved sign-in.
-
execution_targetstring cloud,autoorlocal. Alocalrun fails while your desktop is offline.-
devicestring - Run on this linked desktop.
-
mutation_modestring defaultlive - For a function that writes:
dry_runpreviews it without sending.
{
"workflow": "top-stories",
"inputs": { "limit": 10 },
"max_age": 600,
"timeout_seconds": 60
} writ_update_workflow
Inspects or edits a saved workflow: an outline, one function’s source, targeted edits, a settings patch. It can also keep a linked copy on Writ Cloud or your desktop.
Main inputs
-
workflowstring - Workflow name or id.
-
patchobject - Settings to change.
-
function_updatesobject[] - Edits to named functions.
-
copy_tostring cloudordesktop: keep a linked copy there.-
validate_onlyboolean - Check the edit without saving it.
writ_create_http_extraction
Drafts a multi-request extraction that runs without a browser (loops, GraphQL, cursor pages) from captured requests and a plain-language goal.
Main inputs
-
goalstring required - Inputs, output fields, filters, order and paging wanted.
-
workflowstring - The workflow to revise.
-
request_samplesobject[] - Calls read with
writ_browser_network. -
applyboolean defaultfalse truewrites the draft to the workflow.
writ_diagnose_http_workflow
Explains why a run failed or returned nothing, and names the next fix.
Main inputs
-
workflowstring - Workflow name or id.
-
task_idinteger - A run to check in detail.
writ_pin_workflow_tool
Pins a workflow as its own tool, named run_<name>, with the workflow’s inputs plus
the run controls above. At most 20 are listed. Every workflow stays callable through writ_run_workflow.
Main inputs
-
workflowstring - Workflow name or id.
-
pinnedboolean defaulttrue falseunpins.
writ_set_schedule
Runs a workflow automatically. On an API, it can schedule chosen functions with saved inputs.
Main inputs
-
workflowstring - Workflow name or id.
-
every_minutesinteger - Minutes between runs.
-
kindstring interval,dailyorweekly.-
timestring - HH:MM, for daily and weekly.
-
daysinteger[] - Weekdays for weekly, 1 (Monday) to 7 (Sunday).
-
tzstring - Time zone, such as
America/Toronto. -
functionsstring[] - Functions a scheduled run calls.
-
enabledboolean defaulttrue - Turn the schedule on or off.
writ_expose_workflow_api
Publishes a workflow as a REST endpoint: a POST URL that waits for the run and returns its JSON. Calling it again reuses the same endpoint.
Main inputs
-
workflowstring - Workflow name or id.
-
timeout_secondsinteger default120 - How long the endpoint waits for a run, at most 300.
Data
writ_workflow_data
Reads a workflow’s collected data as a table without running it. Long cells come back shortened; refs returns full records.
Main inputs
-
workflowstring - Workflow name or id.
-
qstring - Text filter across fields.
-
viewstring all,latestorrun(withrun_id).-
refsstring[] - Full records by reference
<run_id>:<index>, at most 100.
writ_search_data
Searches everything your workflows already collected for a term, without running anything.
Main inputs
-
qstring required - The search term.
-
workflowstring - Search one workflow only.
writ_export_data
Exports a workflow’s full data table as CSV or JSON.
Main inputs
-
workflowstring - Workflow name or id.
-
formatstring defaultcsv csvorjson.
writ_workflow_runs
Run history: status, timing, errors, and whether each run happened on Writ Cloud or your desktop.
Main inputs
-
workflowstring - One workflow, or leave it out for all.
-
statusstring pending,running,success,failed,cancelledorskipped.
Harvest
writ_crawl_site
Collects a site or a section into a dataset, one row per page. A bounded crawl (a listing’s top items
or known pages) answers with its rows; an open one returns a crawl id to follow with writ_crawl_status.
Main inputs
-
urlstring required - Where the crawl starts.
-
intentstring - The section you want, in plain words. Writ scopes the crawl from it.
-
rank_capinteger - Only the top N items of a listing (at most 50).
-
seed_urlsstring[] - Exact pages to collect, instead of discovering them.
-
page_budgetinteger - The most pages to collect.
-
extract_modestring defaultmarkdown markdown,schema(uniform records from CSS selectors) orhtml.-
executorstring defaultregular aireads every page againstextract_prompt, at 5 times the page rate.-
persona_idinteger | string - Crawl as a saved sign-in.
-
respect_robotsboolean defaulttrue - Honor the site’s robots.txt.
-
save_asstring - Save the settings as a named crawl you can run again.
writ_crawl_status
The status of a crawl. With wait=true, one call holds up to 75 seconds and returns the rows when the crawl is done.
Main inputs
-
crawl_idinteger required - The crawl’s id.
-
waitboolean defaultfalse - Hold until the crawl is done.
writ_saved_crawls, writ_run_saved_crawl, writ_saved_crawl_data, writ_update_saved_crawl
Work with crawls you saved. writ_saved_crawls lists them. writ_run_saved_crawl runs one; with max_age it returns recent data at no cost instead of crawling again. writ_saved_crawl_data reads the last completed run without crawling. writ_update_saved_crawl shows or changes the saved settings.
Main inputs
-
crawlstring - The saved crawl’s name, slug or id (required except for the list).
-
max_ageinteger default0 - With
writ_run_saved_crawl: reuse a run younger than this many seconds. -
settingsobject - With
writ_update_saved_crawl: the settings to change.
writ_crawl_files
The original files a crawl captured (PDFs, office documents, images, CSV files), each with a short-lived download link.
Main inputs
-
crawl_idinteger - One crawl run, or use
crawlfor a saved crawl’s latest run. -
limitinteger default100 - Files to return, at most 200.
Watch and automate
writ_create_monitor
Watches a page and fires a change when the page, an element’s text, a value or a visual zone changes.
Without interval, the answer lists the check frequencies your plan allows and their cost,
and creates nothing.
Main inputs
-
urlstring required - The page to watch.
-
intervalstring | integer - An option such as
15mor1h, or a number of seconds. -
selectorstring - CSS selector of the element to watch.
-
watchstring defaultcontent pricealso checks that the element holds a number.-
modestring visualcompares the pixels of a zone, for charts, images or badges.-
requires_browserboolean - Check in a real browser, for pages built by JavaScript.
-
persona_idinteger | string - Check with a saved sign-in, for a page behind a login.
writ_wire_monitor
Connects a monitor’s changes to an action.
Main inputs
-
monitor_idinteger required - The monitor from
writ_create_monitor. -
actionstring required notify,workfloworai_task(an AI agent opens the page and works onprompt).-
channelsstring[] - For
notify: channels you set up, such asemailorpushover. -
workflowstring - For
workflow: the workflow to run. -
thresholdnumber - Price watch: act once, when the price reaches this number.
-
threshold_opstring defaultlte lte,lt,gteorgt.-
cooldown_minutesinteger default10 - For
ai_task: minimum minutes between wakes.
{
"monitor_id": 812,
"action": "notify",
"channels": ["email"],
"threshold": 400,
"threshold_op": "lte"
} writ_create_automation
On an event, runs a workflow, sends a notification built from the event’s data, wakes an AI agent, or several of these.
Main inputs
-
namestring required - The automation’s name.
-
whenstring workflow_completed,workflow_started,crawl_completed,crawl_failed,change_detected,webhook_received,scheduled,ai_session_completedorai_session_started.-
on_workflowstring - The workflow whose event fires it.
-
target_idinteger - With
change_detected: the monitor. -
run_workflowstring - The workflow to run.
-
notifystring - A message, with placeholders such as
{{extracted.price}}. -
channelsstring[] - Where the notification goes.
-
ai_promptstring - A task for an AI agent when the event fires.
writ_list_webhooks
Your incoming webhook URLs, whether each is signed, and the automations it fires. Signing secrets are never shown.
Help
writ_help
The full reference of any tool, or a guide topic.
Main inputs
-
topicstring - A tool name (including a
run_<name>tool),guide(the full manual),actions,recording,2fa,humanization,http_flowsorflow_operators. Empty returns the list.
Connect with ?tools=all to receive every tool’s full reference up front instead of the short
index. It costs many more tokens on every turn.