Cotlet
dev.cotlet/cotlet
Cotlet's own tools: a cloud browser signed in as the user, account, credits and calls.
- cotlet_app_guide — How to work in an app by clicking in the user's Cloud Browser with Cotlet's browser tools: which browser to use for this workspace and the sign-in link, the method step by step, the app's screens, men
- cotlet_apps — The apps of the user's workspace and whether each works now: the app account in the user's Cloud Browser (connected, signed out, signed in but not connected), and the one step the user has to take, wi
- cotlet_automation_control — pause, resume, run_now (a run now, the answer comes later in cotlet_automation_list) or delete. Ask the user before delete.
- cotlet_automation_guide — Read first when the user wants a job to repeat on a schedule (every N minutes, daily, when something new appears): the script SDK, its rules, examples and the steps test then save. Free.
- cotlet_automation_list — The workspace's automations: status, schedule, last run, cost. With `automation`: that one in full (script, how it works, writes and consent, outputs) and its runs, newest first: each with id, status,
- cotlet_automation_rows — What an automation collected, newest run first, each row with its run_id. `run`: only that run's rows (ids from cotlet_automation_list). `since`: an ISO time; `limit` up to 200.
- cotlet_automation_save — Saves a tested script as an automation on a schedule, or with `automation` as its new version. Show the user the rows, schedule and cost first. A script with writes waits until the user allows them in
- cotlet_automation_test — Runs a script once now in a hidden tab of the user's Cloud Browser with every write skipped, and answers its status, rows, log, steps and credits. Uses browser minutes. Test the exact script you will
- cotlet_balance — The user's current credit balance. Free. Needs the user's Cotlet API key or sign-in.
- cotlet_browser_click — Clicks element `element`, or point `x`, `y` of the screenshot; `double` double-clicks, `button: right` right-clicks. Answers the page after it: the elements and text in view, with the same numbers. Sa
- cotlet_browser_close — Ends the browser session when the task is done: the browser keeps its cookies and sleeps, and the per-minute charge stops. Answers the session's minutes and credits.
- cotlet_browser_download — Gets the file that clicking `element` (a download link or button) or opening `url` starts, also an image or PDF it only opens: answers its name, type, size and a link valid 15 minutes; CSV, JSON and o
- cotlet_browser_drag — Drags from one element or point to another: a card between columns, a piece on a board, a slider's handle. Answers the page after it: the elements and text in view, with the same numbers.
- cotlet_browser_evaluate — Runs a JavaScript function body on the page and answers what it returns, as JSON. Use it to extract data the page holds (a table, a list, attributes); act with the other tools. It cannot send requests
- cotlet_browser_fill_form — Fills several fields in one step: text fields take text, drop-downs an option's label, checkboxes, radios and switches true or false. Stops at the first field that fails and names those filled. Does n
- cotlet_browser_find — Finds `text` on the whole current page, frames included: the elements whose label holds it, with their numbers, and each line of text that holds it. Use it instead of reading or scrolling a long page
- cotlet_browser_hover — Rests the pointer on an element or a point, to open a hover menu, a tooltip or a preview. Answers the page after it: the elements and text in view, with the same numbers.
- cotlet_browser_navigate — Opens `url` in the current tab, or goes `history` back or forward. Answers the page after it: the elements and text in view, with the same numbers.
- cotlet_browser_open — Starts the user's Cloud Browser (a real Chrome on Cotlet, where the user is signed in to their sites) and opens `url`. Call it first. The URL goes to the site's open tab, else to a new tab, so the use
- cotlet_browser_press — Presses a key on the focused element: Enter to send, Tab to the next field, Escape to close a pop-up, arrows in a list or slider, or one character (a site's shortcut). Answers the page after it: the e
- cotlet_browser_read — The whole current page: its text (up to 20,000 characters) and a numbered list of its links, buttons, fields and other controls, open dialogs first. Use it on a new page or when a step's answer is not
- cotlet_browser_screenshot — A JPEG of the visible part of the page. Use it for boards, canvases, maps, charts and layout that the text does not show, then click or drag by `x`, `y` of the image.
- cotlet_browser_scroll — Scrolls with the mouse wheel: `down` or `up` by `screens`, to `top` or `bottom`, until `element` is in view, or inside a panel or list (`inside`). Content that loads on scroll appears. Answers the pag
- cotlet_browser_select — Chooses `option` (its label as listed, or its value) in drop-down `element`. For a home-made drop-down, click it, then click the option. Answers the page after it: the elements and text in view, with
- cotlet_browser_tabs — The tabs of the user's web browser, where they keep their signed-in sites open. `list` (default) answers each tab's id, URL and title and which is shown; `switch` with `tab` shows that tab, and every
- cotlet_browser_type — Types `text` into field `element`, replacing what it held; `submit` presses Enter after it. For several fields use fill_form. Without `element` the text goes where the focus is, as a person types afte
- cotlet_browser_upload — Puts files into file field or upload button `element`: each file is {"url": "https://..."} or {"file_id": "..."} of a file uploaded to Cotlet; up to 10 files, 20 MB each. Answers the page after it: th
- cotlet_browser_wait — Waits until `text` shows on the page (at most `seconds`, default 5, up to 20), or just `seconds`: for results that load slowly. Says whether the text appeared. Answers the page after it: the elements
- cotlet_get_call — Status of an earlier Cotlet call, by its call_id: pending (waits for the owner's approval in the Cotlet console), approved, running, success, rejected, expired, blocked or failed. For a call that answ
- cotlet_report_issue — Sends a report to the Cotlet team: a tool that failed or returned wrong data, an error you could not get past, or a step the browser could not do, with the page, the step and what you saw. A missing d
- cotlet_request_apps — Requests access to apps for the user's workspace, as Request access in the console: every app is granted at once. Not needed to work in an app: the user's AI works in any web app in their Web browser
- cotlet_upload_file — Returns a one-time upload_url and a file_id for a local file (an image for a post, an attachment). The file is sent to upload_url with an HTTP PUT; an argument that takes a file accepts {"file_id": ".
- cotlet_whoami — The Cotlet account this connection acts as: email, workspace, access status, the API key or OAuth client in use with its scope, the apps the workspace may call, its credit balance, and the app the use