Agents
Space MCP tools in the Agents scope (agents). Reach these with a wks_live_ key over space-mcp or space-api.
Tools in the agents scope, callable over space-mcp (tools/call) or space-api (REST) with a wks_live_* key that grants agents.
add_agent_or_pack
Scope: agents:write
Copy one of the space owner's AGENTS, or a PACK (things the owner put together from several spaces), into THIS space (ids from list_origins kind agent or pack; a saved copy is agent_copy / pack_copy). An agent comes with the things it works with — its apps, tables, documents, skills — copied first, and lands as a SETUP that is not an agent until Start (start_agent_setup); nothing runs or is billed before that. Everything is copied in the background: follow it with get_space_setup. Never its chat, memory, keys or connected accounts. Always asks the owner first.
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | agent | pack | agent_copy | pack_copy | yes | |
id | string | yes | From list_origins. |
allow_agent_sell_or_outbound
Scope: agents:run
Switch on (or off) the two things an agent does for people that reach past their chat: sell (charge for work — offer listings and payment links in their chat, see whether they bought) and outbound (send email, texts or social posts on their behalf). Switching one on asks the owner first. tell posts a line in every person's chat.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
sell | boolean | ||
outbound | boolean | ||
tell | boolean | Post one line in every person's chat saying what changed (do it when something is taken away). | |
tell_note | string | Your own sentence for that line. |
close_agent_doors
Scope: agents:write
Close an agent's doors at once: link false, space_members false, requests off (or ask instead of anyone), new_link (the old link stops). People who already have it keep it. Opening a door is set_agent_doors (it asks the owner).
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
link | boolean | Anyone with its link may start a chat with it. | |
space_members | boolean | Every member of its space has it (they are added now and as they join). | |
requests | off | ask | anyone | People who find it by its username: off (they can't) | ask (they ask, someone lets them in) | anyone (right away). | |
new_link | boolean | A new link; the old one stops working. |
cloud_server_options
Scope: agents:read
The sizes and places a cloud account can make right now, each with the provider's own monthly price and about how many agents it holds. Use before request_cloud_server.
| Parameter | Type | Required | Description |
|---|---|---|---|
cloud_account_id | string | From list_cloud_accounts. Omit when the owner has only one. |
create_agent
Scope: agents:write
Make another agent in THIS space — a person in Messages with its own chat, thinking on this space's gateway, billed to this space. It can never do more than you can here: leave permissions, ask_first, can_use and space_ids out for "same as me" (your own permissions and gates, your own Can use, this space only), or ask for a SUBSET — anything wider than yours is refused by name. Its ask-first gates are at least yours. Say what it is for in instructions (it reads them from day one). Each new agent is a bill; the owner may have set this to ask them first, in which case the call queues and you call again with approved_action_id once approved. Every agent it makes in turn is held under ITS ceiling.
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | yes | What it is called in Messages. Must be unused among the owner's agents. |
instructions | string | Its standing instructions, plain English, up to 8000 characters: what it is for, how the owner likes things done. | |
permissions | object | category → action → true, a SUBSET of yours here; the actions are read, write, run (e.g. { "calendar": { "read": true, "write": true }, "tasks": { "write": true } }). Omit for the same as yours. | |
ask_first | object | category → action → true: gates on top of yours (yours always apply). Omit for the same as yours. | |
can_use | object | { "<space_id>": <map> } — within what YOU may use there, and no further than YOUR step on each thing. Per kind (tables, documents, apps, pages, decks, forms, asset_folders, automations, secrets) one of: "all" or left out (every one, at the top); a LIST ["<id>" | {"id": "<id>", "level": "<step>"}] (only those; a bare id = the top; [] = none); or EVERY ONE AT A STEP, EXCEPT — leave the kind out and pass default_levels: {"<kind>": "<step>"} with levels: {"<kind>": {"<id>": "<step>" | "hidden"}} ("hidden" = it cannot see that one; new ones arrive at the default step). Steps, bottom first — tables: read < edit < fill < change; apps: read < use < build; pages: read < content < edit < change; decks: read < content < edit < change; documents: read < comment < edit < change; forms: read < submit < edit < change; asset_folders: read < add < change; automations: read < run < edit < change; secrets: use; projects: read < update < add < change; mailboxes: read < reply < send < campaigns; phone_numbers: read < reply < text < campaigns; ad_accounts: read < draft < spend; calendars: busy < read < add < change. tables: edit = change what existing rows say, fill = also add/remove rows, change = also columns/views/settings/delete; apps: use = records and running it, build = also its code/publishing/sharing; pages: content = swap a picture or pin a product, edit = rewrite it, change = also publish/delete; decks: content = replace a picture or video, change the words, edit = also its slides and look, change = also share/delete; documents: comment, edit = change the words, change = share/move/delete; forms: submit = send answers through it, edit = its questions, change = publish/delete; asset_folders: add = put files and folders in it, change = rename/move/delete (a folder covers everything under it); automations: run, edit = its trigger and steps, change = switch on/off, delete; a secret is only used, never read. Omit for the same as yours. | |
space_ids | string[] | Other spaces it may act in — only ones you work in (list_my_spaces). Omit for this space only. | |
model | string | Its brain, a chat model this space allows (list_ai_models, category llm). Omit for your own model; required when you think on a sign-in. | |
compute_limit_monthly | number | Its monthly compute cap in USD, at most yours. Default: yours, or $50, whichever is lower. | |
avatar_url | string | A face for it (an image URL). | |
department | string | The department it joins (list_departments). Omit for your own; "none" for no department. It starts with that department's projects and those in no department. |
delete_cloud_server
Scope: agents:write
Delete a server YOU asked for (list_cloud_accounts → servers_you_asked_for), at the provider too, when the work it was for is done. Any agent running on it waits for another computer. You cannot delete a server someone else made.
| Parameter | Type | Required | Description |
|---|---|---|---|
computer_id | string | yes | From servers_you_asked_for. |
get_agent_for_people
Scope: agents:read
How an agent of this space is open to people on Wakato: its username, its doors (its link, its space's members, people who ask, who it was given to), the brief and switches for people who have it, their starter routines, ⚡ shortcuts (and what a shortcut can open), links, offers, its spending caps and what it spent, and whether Wakato holds it. Read it before changing any of it.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. |
list_agent_accounts
Scope: agents:read
The agent accounts run from this space: the names and faces people outside reach (phone, texts, email, website chat, social DMs, Wakato), which agent runs each one, whose face it wears, and whether it is paused because nobody runs it.
list_agent_setups
Scope: agents:read
Agents copied into THIS space that haven't started: each one's id and name. Read one with get_to_finish {kind: agent, ref_id} and start it with start_agent_setup.
list_cloud_accounts
Scope: agents:read
The cloud accounts (Hetzner, DigitalOcean) the person who runs this space connected, whether you may make servers in each (never · ask on a card · without asking up to a monthly amount they set), and the servers you asked for with their progress. A server made there is a COMPUTER agents can run on, billed by the provider to the owner's own account — not this space's wallet.
list_offer_choices
Scope: agents:read
The listings an agent may offer the people who have it, by kind: own (live listings of a shop on its space — these may carry a deal), partner (listings the space's owner is a shop partner on, with the share), market (anyone's live Marketplace listings). q narrows by title. Then set_agent_offer.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
kind | own | partner | market | yes | own (a listing of a shop on its space) | partner (a listing the space's owner is a shop partner on) | market (anyone's live Marketplace listing). |
q | string | Words in the title. |
lower_agent_spend_caps
Scope: agents:write
Lower an agent's own spending caps at once — daily, weekly, monthly in US dollars (UTC windows), or set one where there was none. What it spends on everyone's behalf stops at the cap; the space's limits still apply. Raising or removing a cap is set_agent_spend_caps (it asks the owner).
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
daily | number,null | Its daily cap in US dollars (UTC day). | |
weekly | number,null | Its weekly cap in US dollars (UTC week). | |
monthly | number,null | Its monthly cap in US dollars (UTC month). |
pause_agent
Scope: agents:write
Pause an agent YOU made (create_agent) in this space: it keeps its name, chat, files, permissions and External Reach settings but stops answering — messages to it wait, its scheduled tasks are skipped (recurring ones run again at their next time), its External Reach stays silent, and its machine bills nothing. Reversible with resume_agent. You cannot pause a peer or your maker — ask the owner for those. agent_id from list_agents.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | The agent (list_agents). |
pin_agent_offer
Scope: agents:write
Pin an offer to the top of an agent's ⚡ sheet (one pinned at a time), or unpin it (pinned false).
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
offer_id | string | yes | The offer (get_agent_for_people lists them). |
pinned | boolean | false unpins it. Default true. |
remove_agent_offer
Scope: agents:write
Take an offer out of an agent's ⚡ sheet (its discount code stops working).
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
offer_id | string | yes | The offer (get_agent_for_people lists them). |
request_cloud_server
Scope: agents:read
Ask for a new server in the owner's own cloud account. By their rule it is refused, shown as a card in this chat for their yes (most often), or made at once. It is plain Ubuntu that sets itself up and joins Wakato as a computer in about 6 minutes. Give a size and place from cloud_server_options, a name people will recognise, and the purpose in one sentence (it is on the card). Ask only when the owner wants it or the work truly needs a machine of its own — each server is a monthly bill.
| Parameter | Type | Required | Description |
|---|---|---|---|
cloud_account_id | string | From list_cloud_accounts. Omit when the owner has only one. | |
size | string | yes | A size id from cloud_server_options, e.g. cpx32 or s-4vcpu-8gb. |
location | string | A place id from that size's places. Omit for the first place it is available in. | |
name | string | yes | What it is called in Compute, e.g. "Marketing team". |
purpose | string | yes | One sentence on what it is for — shown on the card. |
resume_agent
Scope: agents:write
Resume an agent YOU made that is paused. It comes back exactly as it was and reads what arrived while it was paused; a skipped recurring task runs at its next time, not now. A running agent is a bill again, so the owner may have this ask them first. agent_id from list_agents.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | yes | The agent (list_agents). |
save_department
Scope: agents:write
Make a department of the space ("Marketing") or change one (department = its name or id), and put agents and projects in it (by name or id; they move from wherever they were). Make one only when the owner asks for it or agreed to it. An agent may stay in no department.
| Parameter | Type | Required | Description |
|---|---|---|---|
department | string | An existing department to change. Leave out to make a new one. | |
name | string | Its name (new, or a rename). | |
about | string | One line: what it covers ("Ads, social posts, the newsletter"). | |
color | indigo | coral | teal | blue | violet | amber | green | rose | slate | ||
agents | string[] | Agents to put in it. | |
projects | string[] | Projects to put in it. | |
role | string | The role new agents of this department start from: full (Full access), observer (Observer), isolated (Isolated), email (Email manager), support (Customer support), reception (Receptionist), sales (Sales outreach), emailmkt (Email marketer), community (Community manager), social (Social media manager), ads (Ads manager), adsview (Ads analyst), writer (Content & blog writer), website (Website builder), shop (Shop manager), orders (Orders & delivery), bookkeeper (Bookkeeper), financeview (Finance reporter), pm (Project manager), assistant (Personal assistant), research (Researcher), notes (Meeting notes), data (Data & tables), appbuilder (App builder), automation (Automation builder), teamlead (Team lead). Empty to clear it. | |
others_see | nothing | view | work | What everyone outside this department (people and agents) sees of its projects and notes: nothing (kept to itself, e.g. finance or HR), view (read only, the default) or work (they may add tasks). Only when the owner asked; an agent sets it only for its own department. |
set_agent_account_runner
Scope: agents:write
Change which agent of this space runs an agent account: it then answers as the account everywhere people reach it, with its own instructions and permissions. One agent may run several accounts. Leave agent_id out to have nobody run it (the account pauses; messages wait). Always asks the owner first.
| Parameter | Type | Required | Description |
|---|---|---|---|
account_id | string | yes | The account (list_agent_accounts). |
agent_id | string,null | The agent of this space that should run it (list_agents). Leave out or null for nobody: the account pauses. |
set_agent_brief_for_people
Scope: agents:write
What an agent is and may do for the people who have it — live for all of them at once: instructions (its brief for them, up to 8000 characters, @-mentions work), allowed (make, read_space, write_space, hand_to_owner, sell, outbound — switching sell or outbound ON is allow_agent_sell_or_outbound, which asks the owner), person_may (what each person may set), limits, and profile_line (its profile's one line). Left out = kept. tell posts a line in every person's chat. Needs its username first.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
instructions | string | Its brief for people who have it. | |
allowed | object | What it may do in a person's chat: make (images, files), read_space (read the space's documents and data to help them), write_space (write to the space), hand_to_owner (hand a question to whoever runs it), sell (charge for work), outbound (send email, texts, posts for them). true/false each; left out = kept. | |
person_may | object | What each person may set for themselves: routines, tasks, notifications, language, nickname (true/false each). | |
limits | object | spend_per_person_day_usd (0–500, what one person may cost a day), jobs_at_once (1–20, the rest wait in line), wallet_floor_usd (it stops when the space's wallet is under this), tell_when_waiting, remember_person (true/false). | |
profile_line | string | Its profile's one line (160 characters). | |
tell | boolean | Post one line in every person's chat saying what changed (do it when something is taken away). | |
tell_note | string | Your own sentence for that line. |
set_agent_department
Scope: agents:write
Put an agent of this space in a department, or in none (leave department out). It reads that department's notes from then on. Its access does not change: Can use says what it may touch.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent | string | yes | Its name or id. |
department | string | Its name or id. Leave out for none. |
set_agent_doors
Scope: agents:run
Who can start a chat with an agent: link (anyone with its link), space_members (every member of its space), requests (people who find it by its username: off | ask = they ask and someone lets them in | anyone = right away), new_link (the old link stops). Opening a door asks the owner first; to only close doors use close_agent_doors, which acts at once. Needs its username first.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
link | boolean | Anyone with its link may start a chat with it. | |
space_members | boolean | Every member of its space has it (they are added now and as they join). | |
requests | off | ask | anyone | People who find it by its username: off (they can't) | ask (they ask, someone lets them in) | anyone (right away). | |
new_link | boolean | A new link; the old one stops working. |
set_agent_links
Scope: agents:write
Replace the links in the ⚡ sheet of everyone who has an agent: [{id (keep one), kind: booking|resource|website|download|video, title, detail, url (https://)}]. Send the whole list (10 at most). Needs its username first.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
links | object[] | yes |
set_agent_offer
Scope: agents:run
Make or change an offer in the ⚡ sheet of everyone who has an agent — always a listing bought in Wakato: kind, product_id (list_offer_choices), title, note, pinned (one pinned per agent), may_offer (the agent may bring it up itself), and for own listings a deal {percent_off 5–100, code (4–20 letters and digits, a real discount code of the shop), ends_at} (deal null takes it off). offer_id to change one. Money and promotion: the owner says yes first. Needs its username first.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
offer_id | string | The offer (get_agent_for_people lists them). | |
kind | own | partner | market | yes | own (a listing of a shop on its space) | partner (a listing the space's owner is a shop partner on) | market (anyone's live Marketplace listing). |
product_id | string | yes | The listing (list_offer_choices). |
title | string | ||
note | string | ||
pinned | boolean | ||
may_offer | boolean | ||
deal | object,null | {percent_off, code, ends_at} — own listings only; null takes it off; left out = kept. |
set_agent_routines_for_people
Scope: agents:write
Replace an agent's starter routines — what it does by itself for every person who has it, in their own chat: [{id (keep one from get_agent_for_people), title, prompt (what it does), recurrence daily|weekdays|weekly|monthly, time_of_day 'HH:MM' (its space's time), weekday 0-6 (weekly, Sun=0), day_of_month 1-28 (monthly), enabled}]. Send the whole list (12 at most): one left out is removed for everyone. People see them and can switch theirs off. Needs its username first.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
routines | object[] | yes | |
tell | boolean | Post one line in every person's chat saying what changed (do it when something is taken away). | |
tell_note | string | Your own sentence for that line. |
set_agent_shortcuts
Scope: agents:write
Replace the ⚡ shortcuts beside the message box of everyone who has an agent: [{id (keep one), emoji, label, detail, action}] where action is {kind: say, message} (sends those words as their message) or {kind: open, target_kind: booking|form|page|listing, target_id} (opens one of the space's booking pages, forms, published pages or listings — get_agent_for_people's shortcut_targets). Send the whole list (8 at most). Needs its username first.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
shortcuts | object[] | yes |
set_agent_spend_caps
Scope: agents:run
Set an agent's own spending caps — daily, weekly, monthly in US dollars (UTC windows); null removes one; left out = kept. The owner says yes first (to only lower a cap, lower_agent_spend_caps acts at once). Setting a cap lets a capped agent carry on at once.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
daily | number,null | Its daily cap in US dollars (UTC day). | |
weekly | number,null | Its weekly cap in US dollars (UTC week). | |
monthly | number,null | Its monthly cap in US dollars (UTC month). |
set_agent_username
Scope: agents:run
Give an agent its Wakato username, @agent.<username> (3–30 letters, digits, dots, dashes, underscores; checked free across Wakato), and so its Wakato profile marked Agent; profile_line is the one line on that profile. Chosen ONCE — it can never change — and it makes the agent findable, so the owner says yes first. It must have one before any door opens or anything for people is set.
| Parameter | Type | Required | Description |
|---|---|---|---|
agent_id | string | The agent: its id or its exact name (list_agents). Leave it out to mean yourself. | |
username | string | yes | The part after agent. (e.g. nia for @agent.nia). |
profile_line | string | Its profile's one line (160 characters). |
start_agent_setup
Scope: agents:write
Start an agent copied into THIS space (from list_agent_setups): it becomes a real agent with its own chat, billed to this space from now on. Refused while its To finish list has required steps open or its model isn't allowed here. Always asks the owner first.
| Parameter | Type | Required | Description |
|---|---|---|---|
setup_id | string | yes |
start_cloud_server
Scope: agents:write
Power on a server YOU asked for that is stopped. It is back for agents in a minute or two.
| Parameter | Type | Required | Description |
|---|---|---|---|
computer_id | string | yes | From servers_you_asked_for. |
stop_cloud_server
Scope: agents:write
Shut down a server YOU asked for (servers_you_asked_for). Agents on it go offline until it starts again. Most providers (Hetzner, DigitalOcean) keep billing a stopped server — when the work is done for good, delete_cloud_server instead.
| Parameter | Type | Required | Description |
|---|---|---|---|
computer_id | string | yes | From servers_you_asked_for. |