trawley_build_scraperTalk to Trawley's scraper builder to create or edit a scraper. The agent navigates the site, picks selectors, and commits.
When to use
Use for any "build me a scraper for X" or "add a field to this scraper" request. Returns the committed scraperId.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| message | string | yes | What you want Trawley to build, in plain English. Example: "extract listings from acmehomes.co.uk". The agent infers the target URL from this message. |
| scraperId | string | no | Omit for new scrapers. Pass an existing scraperId to continue editing — useful for adding a field, fixing a selector, or extending a partial build. |
Returns
{
"content": [{ "type": "text", "text": "<agent's reply>" }],
"structuredContent": {
"scraperId": "scr_xxx" | null,
"idempotency_key": "mcp:commit:<keyId>:<requestId>",
"message": "<agent's reply>"
}
}Notes
- ·Long-running: a single call can take 30s–5min depending on site complexity.
- ·Per-team concurrency capped at 3 in-flight builds. Excess returns AGENT_LOOP_CONCURRENCY.
- ·If a build commits but the HTTP connection drops before the reply arrives, call trawley_list_scrapers to find the committed id.