Jaybird Digital

v1.3.3
com.jaybirddigital/website Checked 3 days ago Published 14 days ago

Build 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…

ParameterTypeDescription
businessName *stringThe website's name as the person gave it, such as their business's name. It is shown in the website's address.
aboutstringOptional: 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…

ParameterTypeDescription
files *array1 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 *stringThe websiteId start_website returned, or one list_sites shows.
checkOnPhonebooleantrue 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.
editKeystringThe 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…

ParameterTypeDescription
edits *array1 to 20 changes to the file, applied in order.
path *stringThe 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 *stringThe websiteId start_website returned, or one list_sites shows.
checkOnPhonebooleantrue 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.
editKeystringThe 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…

ParameterTypeDescription
pictures *array1 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 *stringThe websiteId start_website returned, or one list_sites shows.
editKeystringThe editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account.
pathsarrayOptional: 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.

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…

ParameterTypeDescription
websiteId *stringThe websiteId start_website returned, or one list_sites shows.
editKeystringThe 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.

ParameterTypeDescription
path *stringThe 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 *stringThe websiteId start_website returned, or one list_sites shows.
editKeystringThe 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…

ParameterTypeDescription
websiteId *stringThe websiteId start_website returned, or one list_sites shows.
editKeystringThe editKey start_website returned, which proves the website is the caller's. Leave it out for a website in the connected account.
pagesarrayOptional: 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.
picturebooleantrue 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.

ParameterTypeDescription
query *stringA 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.

ParameterTypeDescription
websiteId *stringThe websiteId start_website returned, or one list_sites shows.
editKeystringThe 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.

ParameterTypeDescription
path *stringThe 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 *stringThe websiteId start_website returned, or one list_sites shows.
editKeystringThe 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.