Jaybird Digital
v1.3.3Build and publish a website from a chat.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
start_website Start a website
Use this whenever the person asks for a website, or a page for their business, event or wedding: it puts a real website online, at an address they can open on their phone, share and keep, which code shown in the chat does not have. Creates a new, empty website and returns its websiteId, the editKey for changing it, the viewUrl where it can be seen, the keepUrl where the person keeps it, photoLink (a link where the person adds their own photos), siteZip (an address an AI that can run commands sends the whole website to as one zip, photos included), and the rules and size limits its files must m…
| Parameter | Type | Description |
|---|---|---|
businessName * | string | The website's name as the person gave it, such as their business's name. It is shown in the website's address. |
about | string | Optional: what the person said the website is for, in their words. |
save_website_files Save website files
Adds or replaces files on a website and checks every page against the rules start_website returned. Files not sent stay as they are; delete_website_file removes one, and edit_website_file changes part of one. Never send a photo here as base64: one photo is hundreds of thousands of characters, slow and costly to write; for a photo the person will add, write <img src="photos/<name>.jpg" alt="what belongs there"> and give them the photoLink start_website returned: they fill that place themselves and it shows at once. save_website_pictures saves pictures you hold as files or at an https address. I…
| Parameter | Type | Description |
|---|---|---|
files * | array | 1 to 40 files to add or replace, or up to 150 on a website hosted as written on a plan. A file whose path is already saved is overwritten. |
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
checkOnPhone | boolean | true to also check every page on a phone once this is saved, in the same call, as check_website_on_phone does. Send it with your last change before you say the website is ready. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
edit_website_file Edit a website file
Changes part of one saved page, stylesheet or script in place: each edit replaces its find text with its replace text, so a fix sends only the text it changes instead of the whole file. Copy find exactly from the file (read_website_file shows it); it must appear once, or set all to change every one. Edits apply in order, and if any fails nothing is saved. Every page is then checked against the rules, and it returns the same report as save_website_files with edited. Fails with not_in_file when a find text is not there, found_more_than_once when it is there several times, and not_text for a pict…
| Parameter | Type | Description |
|---|---|---|
edits * | array | 1 to 20 changes to the file, applied in order. |
path * | string | The file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path. |
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
checkOnPhone | boolean | true to also check every page on a phone once this is saved, in the same call, as check_website_on_phone does. Send it with your last change before you say the website is ready. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
save_website_pictures Save website pictures
Saves pictures the person gave you, such as photos they uploaded in the conversation, as files on a website, without sending their bytes as text: pass each one as a file in pictures and it is downloaded from its download_url. ChatGPT fills the file in itself; any AI can also pass a picture's public https address as download_url, with file_id any name for it. Each is saved as images/<its file name> unless paths names another place, and a large picture is made smaller to suit a web page. Returns saved, each picture's path and size to use as an <img> src in the pages, beside the same report as sa…
| Parameter | Type | Description |
|---|---|---|
pictures * | array | 1 to 10 pictures, each a file: ChatGPT fills in download_url and file_id for a file the person uploaded; another AI passes a picture's public https address as download_url. |
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
paths | array | Optional: where to save each picture, in the same order as pictures, such as images/gallery-1.jpg. The extension follows the picture's real type. |
get_picture_upload_link Get a picture upload link
Makes a link where the person adds their own photos to a website from their phone or computer, so the photos never pass through the conversation. Give them uploadUrl: it works for 24 hours and takes photos of up to 20 MB each. Every place a page keeps for a photo (an <img> whose src is photos/<name>.jpg with no file saved there yet) is listed on it by its alt, and the photo the person chooses is saved at that place and shows on the website at once. They can add up to 10 other photos too, each saved as images/<its file name>; when they say they are done, list_website_files shows those paths to…
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
list_website_files List website files
Lists every file saved on a website, with each path and its size in bytes, its limits (the files and bytes this website may hold, and limits.saves, how many times it may be saved, null for no limit) and saves (the times it has been saved), beside the viewUrl, keepUrl, pages, passed and any problems. It changes nothing. The paths are the ones read_website_file and delete_website_file take; read_website_file on a photo shows it to you with its width and height. It also returns siteZip, an address that gives the whole website as one zip (curl -o site.zip) and takes one back (curl -T site.zip), fo…
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
read_website_file Read a website file
Returns one saved file from a website with its path, encoding and content: pages, stylesheets and scripts as utf8 text, and fonts as base64. A picture (such as a photo the person added) comes back as encoding picture with its contentType, bytes, width and height and no content; a smaller copy is attached as an image for you to look at, so you can see what it shows. It changes nothing. A path that is not saved fails with no_such_file; list_website_files shows which paths exist.
| Parameter | Type | Description |
|---|---|---|
path * | string | The file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path. |
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
check_website_on_phone Check a website on a phone
Opens a website's pages in a real browser at a phone's size (390 by 844, as an iPhone) and says, page by page, what a phone visitor would hit: sideways scrolling and what is too wide, pictures that do not load, text under 12px, links and buttons under 24px to tap, a missing or zoom-blocking viewport line, bars that cover the screen, and a main heading pushed below the first screen. Each page gets fine and findings in plain words. It changes nothing. Checks every page up to 5 (or the pages named), a few seconds each, up to 40 pages a day per website. With picture true it also returns a screensh…
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
pages | array | Optional: up to 5 saved pages to check, such as ["index.html", "menu.html"]. Leave it out to check every page, home page first, up to 5. |
picture | boolean | true to also get a screenshot of the first page checked, as a phone shows it. Leave it out if your app cannot look at images. |
search_domains Search for a domain name
Asks a domain registrar, live, which names can be registered, and returns up to about a dozen, each with its name, whether it is available and whether it is premium. Availability can change at any moment. Nothing is bought or held; a name is bought from the website's keep page.
| Parameter | Type | Description |
|---|---|---|
query * | string | A whole domain name such as sweetcrumbs.com, or a word to build names from such as sweetcrumbs. |
delete_website Delete a website
Permanently deletes a whole website: every file, its address and its keep link. It cannot be undone. Call it only when the person has asked, in their own words, for the website to be deleted; never to start over, since save_website_files and edit_website_file change a website in place. To remove one file instead, use delete_website_file. A website with a plan is refused with has_a_plan; the person removes it from their dashboard.
| Parameter | Type | Description |
|---|---|---|
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
delete_website_file Delete a website file
Removes one saved file from a website, then checks the remaining pages against the rules start_website returned, and returns the same report as save_website_files. Other files stay. A path that is not saved fails with no_such_file. Removing index.html leaves the website with no home page until one is saved. To delete the whole website, use delete_website.
| Parameter | Type | Description |
|---|---|---|
path * | string | The file's path from the website's root, exactly as it was saved, such as index.html, about.html or images/shop.jpg. list_website_files shows every path. |
websiteId * | string | The websiteId start_website returned, or one list_sites shows. |
editKey | string | The editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account. |
list_sites List Your Websites
Lists the websites in the person's Jaybird Digital account, sorted by name, with each one's id, name and live address. Websites started with start_website while the account was connected, or opened with their editKey, are listed under startedWebsites (up to 20, kept ones first). An account with none gets an empty list. Needs the person to connect their account; called without one, it asks them to sign in.