edit_website
Change an existing AI-built Grigora website by describing the change.
Grigora's AI builder applies the change to the site's design and content in the background (usually a few minutes), exactly like typing the prompt in the editor's AI chat. Uses the account's AI credits; nothing is published. Works only on AI-builder websites.
Only ONE build runs per website at a time. If one is running this returns error "build_in_progress" with its build_id: wait for get_website_build_status to report "completed" (or "failed"), then send the next change. Combine related changes into one prompt when you can. If no build starts, "reply" holds the AI's question for the user.
Args: project_id: The website's project ID. prompt: The change to make, e.g. "Make the hero warmer and add a testimonials section". attachments: Optional links to files for the builder to use — logos, photos, brand guides, menus (PDF), price lists (CSV), audio, video. A list of up to 10 public URLs, e.g. ["https://example.com/logo.png"]. Grigora downloads them itself (up to 80 MB each), so only pass links — never file contents. Refer to them in the prompt by file name, e.g. "use logo.png in the header". For a LOCAL file (e.g. on the user's computer), first call get_attachment_upload_url, upload it with the returned curl command, then pass the returned url here. A refused attachment fails the call before anything is built or charged.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| project_id | Yes | ||
| attachments | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |