Build a website
build_siteUse this when the person wants a marketing website for a business, for example "a site for my bakery". Something people use (upload a photo, AI pictures, sign-in, a tool, a game) is an app, made with build_app. brief is the customer's request in the customer's own words, with only the features they asked for (no sign-up, accounts, subscriptions or payments they did not name). The first call starts nothing and returns a summary; its action.arguments start the build once the person agrees. In hosts that render the build card (MCP Apps or ChatGPT widget) the card tracks progress; in hosts without one (Claude Code or API) job_status reports it until the job is finished, stopped or failed. Changes to a built site go through edit.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"brief": "<brief>",
"idempotency_key": "<idempotency_key>"
},
"name": "build_site"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pick | No | Console gallery starter slug. | |
| brief | Yes | The customer's request in their own words: what the site is for and any pages, texts, colours or style they named, with only the features they asked for. | |
| theme | No | Console theme slug. | |
| locale | No | Site language (legacy alias for site_language). | |
| as_site | No | True only when Pugi said this sounds like an app (app_suggested) and the person chose a marketing website anyway. | |
| logo_id | No | Selected logo_id returned by make_logo. | |
| max_usd | No | The run ceiling in USD; plan builds are included in the subscription. For credit builds, the most this build may cost. Default 5. Credit accounts pay actual cost, usually less. | |
| language | No | The language the person is writing in, as a BCP 47 tag such as "ru". | |
| without_logo | No | True only when the person said this site should not use the logo they picked. | |
| brief_version | No | With brief_confirmed: the version of the summary the person agreed to, as returned with that summary. | |
| site_language | No | Language for the website content; independent of the chat card language. | |
| brandHandoffId | No | BrandHandoff from logo.pugi.io. | |
| brief_confirmed | No | True only after the person has seen the summary and agreed. In a chat, without it nothing starts and the summary comes back. | |
| idempotency_key | Yes | A unique string naming this job. The same key returns the same job and is never charged twice. |