Let your agent get things done out there
One API for actions with consequences. Send a letter, book a table, dispatch a courier, buy the printer ink. You set the limits. Your agent does the errand.
import { createFieldwork } from '@fieldwork/sdk'
const { actions } = createFieldwork({
apiKey: process.env.FIELDWORK_KEY,
baseUrl: 'https://fieldwork-api.jimkountanis.workers.dev',
})
const order = await actions.product.purchase(
{ query: 'printer cartridges', quantity: 2, deliverTo: office },
{ maxSpend: 150_00 },
)
order.status // 'awaiting_approval'product.purchaseawaiting approval- Printer cartridges, twin pack × 2
- €69.80
- Shipping
- €4.90
- Total
- €74.70
Above your €50.00 threshold, so it waits for you.
The catalog
Six errands, one integration
Each action hides a network of providers, contracts and edge cases behind one typed call. Integrate once and the catalog grows underneath you.
Send physical mail
Print a letter and deliver it by post to a physical address..
actions.mail.send()Book a restaurant table
Reserve a table at a restaurant for a given date, time and party size..
actions.restaurant.book()Dispatch a courier
Send a courier to pick up a package and deliver it same-day..
actions.courier.dispatch()Register a domain name
Register an available domain name for one or more years..
actions.domain.register()Send a document for signature
Send a document to one or more people for legally binding e-signature..
actions.document.sign()Purchase a product
Find a product from an eligible supplier, buy it and ship it to an address.
actions.product.purchase()
Anatomy of an action
Nothing happens until the price is known and allowed
- 01
Quote
The provider prices the action before anything happens.
- 02
Check
The price is tested against the call limit, the key policy and the monthly budget.
- 03
Hold
Anything above your threshold waits for you. The agent cannot approve itself.
- 04
Execute
The provider acts once, keyed so a retry can never act twice.
- 05
Confirm
You get a reference, the final cost and the full trail of what happened.
Guardrails
A failed screenshot is a retry. A duplicate courier is a bill.
Acting in the world needs machinery that returning information never did. It is built in, and it is on by default.
Spending limits
A cap per call, a cap per action and a monthly budget. A quote above any of them stops before money moves.
Human approval
Set a threshold. Above it, the action is held until you approve or reject it in the console.
Idempotency
Send the same key twice and you get the first result back. One request, one courier.
Audit log
Every execution keeps an append-only record: who asked, what it cost, who approved, what the provider said.
Cancellation
Withdraw a held action, or undo a completed one where the provider allows it.
Connect
For the agent you use, and the one you are building
Your personal agent
Fieldwork speaks MCP. Add it to Claude, Cursor or any agent that takes an MCP server and every action becomes a tool. Approval is not one of them: that stays with you.
{
"mcpServers": {
"fieldwork": {
"type": "http",
"url": "https://fieldwork-api.jimkountanis.workers.dev/mcp",
"headers": { "Authorization": "Bearer $FIELDWORK_KEY" }
}
}
}The product you are shipping
A typed SDK and a plain REST API. Hand the docs to your coding agent and it can wire up a working integration against the sandbox in one pass.
curl https://fieldwork-api.jimkountanis.workers.dev/v1/actions/mail.send \
-H "Authorization: Bearer $FIELDWORK_KEY" \
-H "Idempotency-Key: welcome-letter-42" \
-H "Content-Type: application/json" \
-d '{ "maxSpend": 500, "input": { "to": { ... }, "body": "Welcome aboard." } }'Create a key and send your first action
Sign up, make an API key, and point your agent at it. The sandbox costs nothing.
Get started