Skip to content

Tools

8 tools, all scoped to the websites the token’s owner can reach. Every one takes an optional tenant_id, the site’s friendly id as get_site returns it, and works on the account’s original site when it is left out; it is not repeated under each tool below. A token that may only read is offered 3 of them, those that ask for no more, and tools/list names exactly what a connection may call. Every other thing an agent does is a command it types inside bash, listed under Commands.

Run commands on the site’s files. Scope site:read, writes, destructive.

Runs a shell program over the site’s files: cat, grep, sed, edit, ls and the like, git on a working tree that stays between calls, vzk check, and every other site command (run help). Change files, git switch -c, vzk check, git commit, then merge_branch puts the branch live. Read guide instructions.

Arguments:

  • command (string, required): The program, as you would type it in bash.

Put a file on the site’s disk. Scope site:write, writes.

Puts a file on this site’s disk, from exactly one source: a picture the customer attached in this conversation (file), a public https address (url), or base64 bytes (data). It takes PNG, JPEG and WebP pictures and SVG drawings (up to 1 MB), identified by their bytes whatever the file is named. A drawing keeps its shapes, paint and text and loses anything that runs, loads or links. When the customer has attached the picture to this conversation, file is the source to use: pass that attachment and the client supplies the address. For a local file on a machine with a shell, do not base64 it either: call prepare_file_upload and POST it as multipart form data instead.

Arguments:

  • data (string): The file’s bytes, base64-encoded. A data: URL is fine too.
  • file (object): The picture the customer attached to this conversation. When there is an attachment and it is the thing to store, pass it here and the client fills in its address. Never write a download_url of your own — a link given to you as text goes in url instead.
    • download_url (string, required): A public https address the file can be fetched from.
    • file_id (string, required): The client’s own id for the file.
    • file_name (string): What to call the file, when the client knows.
    • mime_type (string): What the client believes the file is. Advisory only: the bytes are identified on arrival, and it is they that decide.
  • filename (string): What to call the file. Required with data. With file the client’s own name is used when this is left out, and with url the address’s own last segment.
  • folder (string): An image only: the id of a folder from list_files to put it in. Omit for the top of the disk.
  • kind (string, one of image, favicon, social_image, required): What the file is for: image (an ordinary picture or an SVG drawing, answered with the public URL it is served at); favicon (the site’s tab icon — replaces the current one, live at once); social_image (the picture a shared link to this site shows — replaces the current one, live at once, and cropped to 1200×630 from the middle).
  • url (string): A public https address to fetch the file from.

Prepare a local file upload. Scope site:write, writes.

Prepares an ordinary HTTP upload for a picture that is available as a local file but cannot be put into an MCP argument. Call this instead of base64-encoding a local photo or icon. For a picture already at a public https address, use upload_file directly instead.

Arguments:

  • folder (string): An image only: the id of a folder from list_files to put it in. Omit for the top of the disk.
  • kind (string, one of image, favicon, social_image, required): What the file is for: image (an ordinary picture or an SVG drawing, answered with the public URL it is served at); favicon (the site’s tab icon — replaces the current one, live at once); social_image (the picture a shared link to this site shows — replaces the current one, live at once, and cropped to 1200×630 from the middle).

Put a branch live. Scope site:write, writes, destructive.

Publishes a branch: main moves to it, as one commit where it holds several, and visitors see its files at once. Refused when main has moved since the branch was updated (run git rebase main in bash first), and while one of its scenarios fails (run_tests). Where the site’s tables are files, merging changes them too, and a branch with a step that needs the owner’s approval is refused: the Vizitka app cannot take that approval yet, so tell the owner. The branch is deleted afterwards unless keep_branch. To undo it, on a new branch from main, git revert <main's commit before the merge> -- <the answer's paths>, then merge that branch.

Arguments:

  • branch (string, required): The branch to put live (git branch lists them).
  • keep_branch (boolean): Keep the branch after the merge. Default false.
  • note (string): One sentence, in the customer’s words, kept with the commit.

Read Knowledge. Scope site:read, read-only.

What the organization keeps for its agents: memory pages, docs and skills. With nothing, the brief a chat starts with; read one document whole, search them, or list what was deleted. Read it before writing for a site. Read guide using-knowledge.

Arguments:

  • deleted (boolean): true for what was deleted in the last 30 days, which remember can put back.
  • read (string): A document’s id, from the brief or a search: answers it whole.
  • search (string): Words to find in the documents’ titles, descriptions and text.

Remember on a memory page. Scope site:write, writes.

Writes a memory page of Knowledge, which every agent of the organization reads: adds text to page, changes the passage find to replace, or puts back a deleted document with restore. The change waits for the owner to keep or undo it. Read guide using-knowledge.

Arguments:

  • find (string): A passage of the page, exactly as the page has it, standing there once.
  • page (string): A memory page’s id, or its title. A title no page has makes a new page.
  • replace (string): With page and find: what the passage becomes.
  • restore (string): Alone: the id of a deleted document to put back, from knowledge with deleted.
  • text (string): With page: what to add, in Markdown. It goes at the end of the page.
  • under (string): With text: the heading to add it under, made at the end where the page has none.

Forget a passage. Scope site:write, writes, destructive.

Removes the passage find from a memory page of Knowledge. The change waits for the owner to keep or undo it. Read guide using-knowledge.

Arguments:

  • find (string, required): A passage of the page, exactly as the page has it, standing there once.
  • page (string, required): The memory page’s id, or its title.

Look at an ad creative. Scope site:read, read-only.

The picture of a frame’s newest version, as an image, with its size and what the Meta check measured. Look before you call a creative done. Read guide creative-studio.

Arguments:

  • card (integer): A carousel’s card, from 1.
  • frame (string, required): The frame’s id, from get_studio_project.
  • project (string, required): The project’s id, from list_studio_projects.
  • second (number): A video’s second.
  • version (string): A version of the frame; omit for its newest.