Edit an event website's draft (organizers only)
site_editChanges the DRAFT of one event website the person organizes with small operations, not a whole design: move a block or a band, insert a block from the library (heading, text, image, button, spacer, divider, video, card, logo, or a live block: agenda, speakers, floor, booths (the live sponsors and exhibitors list; say sponsors, exhibitors or partners), faq, now, doors, ask, countdown, venue), remove one, set_text its words, set_link a button's link, set_style a style token (padding and gap 0 to 8, align, maxWidth, background, radius, color, visible), set_theme (accent, background and ink as #rrggbb, fontHeading, fontBody, radius, density; set_theme {restore:true}, or an all-empty theme, undoes "use that look"), add_page (blank, which starts with its title as a heading, or a template: agenda, speakers, exhibitors, sponsors, venue-travel, faq, register, contact; the page goes last in the site menu), rename_page (title, navLabel; the page address stays the same, and the page heading follows the new menu label unless keepHeading is true; the reply says what changed and carries undo, the set_text that puts the old heading back), reorder_nav (the site menu as page ids and https links) and remove_page (any page but home); each operation may name a page. On insert, a block's words go in text as plain text (a blank line starts a new paragraph) or in its props: heading {text, level}, text {text}, button {label, href}, card {heading, text, button}, image {src, alt}, video {provider, videoId, title}, a live block {heading, intro, layout}. Blocks are named by the short ids site_get gives. The operations apply together or not at all. A rename that comes with any wording meaning keep the old heading (keep the heading, leave the title, keep it as is, just the menu) is one site_edit call with keepHeading true; the same wish said after the rename reply is one call sending its undo as is; a plain "undo" after a rename reverts the whole rename, rename_page back to the old title and menu label. Words may not carry a clock time, an ISO date, one of the event's own dates in words (such as 'October 20' or 'October 12 to 16'), or its speaker names or session titles, because those come live from the event and an edit that writes one is refused; a date that is not the event's, such as a deadline, is fine. Use a live token instead, such as {event.dates}, {event.name}, {event.venue}, {session:.title}, {session:.time}, {session:.day} or {speaker:.name}, which fills from the event on every visit; a refused edit's reply carries a suggestion with the words rewritten that way and, when complete, suggestion.ops to resend as is. Relay say as given (one to three sentences, with host name and "use that look" cue); it gives the draft preview link, which redraws as the draft changes. The live site does not change until site_publish. Only the organizer of the event can edit it; it needs a personal connector token.
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": {
"eventIdOrName": "<eventIdOrName>",
"siteId": "<siteId>",
"ops": "<ops>"
},
"name": "site_edit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | Yes | The operations, applied together or not at all. | |
| siteId | Yes | The site id from site_list. | |
| eventIdOrName | Yes | The event id or name as the organizer spells it. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| code | No | ||
| undo | No | ||
| error | No | ||
| siteId | No | ||
| applied | No | ||
| changes | No | ||
| message | No | ||
| reasons | No | ||
| failedOp | No | ||
| servedBy | No | ||
| draftPreviewLink | No |