Platform Services
Space MCP tools in the Platform Services scope (services). Reach these with a wks_live_ key over space-mcp or space-api.
Tools in the services scope, callable over space-mcp (tools/call) or space-api (REST) with a wks_live_* key that grants services.
get_gpu_job
Scope: services:read
One GPU job: running or how it ended, the last line it printed, seconds used, what it cost, and its results (asset_id + link for each file it saved). Call every 20–30 s while it runs.
| Parameter | Type | Required | Description |
|---|---|---|---|
job_id | string | yes |
get_my_spend
Scope: services:read
What YOU (this agent) spent between two moments — your thinking, the services you called, everything billed to the space because of you — with the total and a line per kind. Note the time when you start a piece of work (a research brief, a batch of posts) and ask here when it is done, so the work can say what it really cost. Everything you spent in that window counts, whatever it was for.
| Parameter | Type | Required | Description |
|---|---|---|---|
since | string | yes | When the work started (ISO date and time, e.g. 2026-09-28T14:05:00Z). |
until | string | When it ended. Default: now. |
invoke_service
Scope: services:run
Call a Gateway service by service_key with a params object (billed to the space wallet). Discover the service_key and its params via list_services. Returns the provider result.
| Parameter | Type | Required | Description |
|---|---|---|---|
service_key | string | yes | The service to call, from list_services (e.g. web-search, tavily-web-search, seo-keyword-overview) |
params | object | Service inputs, per the service's input_schema from list_services | |
action | string | Optional action override; defaults to the service_key (most services need only params) |
list_gpu_jobs
Scope: services:read
This space's latest GPU jobs, newest first, with how each ended and what it cost.
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | number | Up to 50 (default 20). |
list_gpu_kits
Scope: services:read
What a GPU job can run on: the ready kits (Browser & video = Chrome drawing on the GPU, Node 22, ffmpeg, Python audio tools) and the GPUs with their price per minute. Read this before run_on_gpu. Use a GPU for 3D/WebGL rendering (three.js scenes, 3D video styles), heavy video encoding or GPU AI tools; 2D canvas or plain scripts run just as fast on your own machine.
list_services
Scope: services:read
List the Gateway services this space can use (web search, scraping, SEO, social/ads research, transcription, filings, travel, commerce), plus the space's access mode: with no explicit assignments ALL active services are available (platform default); once services are assigned the space is restricted to that curated list (the rest appear under not_enabled). Returns each service_key and the params it expects. Use before invoke_service.
| Parameter | Type | Required | Description |
|---|---|---|---|
category | string | Filter by category, e.g. search | seo | social_media | market_research | ecommerce |
request_service
Scope: services:read
Ask for a Gateway service this space doesn't have on (search, scraping, social data, flights, markets…). A card appears in this chat; the space's owner or an admin turns it on with one tap and you get a message when it's done. If the space already allows every service, or already has it, the answer says so. Use this instead of describing any settings page.
| Parameter | Type | Required | Description |
|---|---|---|---|
service | string | A service_key from list_services, e.g. product-search. | |
service_keys | string[] | Several at once, one card. | |
purpose | string | yes | One sentence on the card: what you'll use it for. |
run_on_gpu
Scope: services:run
Rent a GPU for one job: a fresh machine with the kit installed runs your command in /work, then it is deleted. Bring files as https urls or asset_ids from this space's Assets (a skill folder can travel as a zip with unzip: true). Anything the command writes to /work/out is saved to this space's Assets and listed on the job. It is paid from the space's wallet like any paid service: the wallet must cover the most it can cost (its time limit × the GPU's price) and you pay only the seconds used. It runs straight away unless the owner set paid services to ask first — then a card asks them. The job shows live in your chat, and when it ends a message there tells you how it went with its files — you don't need to keep checking (without a chat, check get_gpu_job every 20–30 s). $WAKATO_CACHE is a folder this space keeps between its jobs: put slow first steps there (built characters, downloaded models) and reuse them. Example: render a 3D video skill — files [{path:'skill/skill.zip', asset_id:'…', unzip:true}], command 'cd skill/… && node tools/capture.mjs video /work/out/video.mp4 0 30'.
| Parameter | Type | Required | Description |
|---|---|---|---|
title | string | A short name people see, e.g. "Render the volcano video". | |
command | string | yes | What to run (bash), from /work. Write results to /work/out. |
files | object[] | Files to put in /work before the command runs (up to 20). | |
max_minutes | number | Hard time limit, 1–120 (default 30). The most it can cost is this × the price per minute. | |
kit | string | Kit key from list_gpu_kits (default browser-video). | |
gpu | string | GPU key from list_gpu_kits (default l4). | |
save_to_assets | boolean | Save /work/out to this space's Assets (default true). | |
app_id | string | Whenever the job is FOR one of this space's apps (rendering its slides, its video, its assets), that app's id (list_apps). The job and its files are then filed under the app. |
stop_gpu_job
Scope: services:run
Stop a GPU job now: the machine is deleted and only the time it ran is charged.
| Parameter | Type | Required | Description |
|---|---|---|---|
job_id | string | yes |