cloneEnvironment
ChatGPTCreate a new environment as a copy of an existing one, including its users and their saved passwords. The users keep their ids, so in magic link projects both environments use the same @testifly.ai email addresses and a login email arriving at that address is saved on both. The new environment is never the default. Returns: the new environment, same shape as getEnvironments.
createFeature
ChatGPTCreate a new feature based on a URL. Checks for an existing feature with the same URL first and notifies create only if the user approved the duplication. Returns: created feature details to share with the user.
createTestSuite
ChatGPTCreate a new, empty test suite in the project. A color is picked automatically. Tests are added to it afterwards, by editing them. Returns: "Test suite created:" followed by { _id: string, name: string }.
createTests
ChatGPTCreate tests for a project based on the provided data. Returns: Array<{ _id: string, title: string }>
deleteEnvironment
ChatGPTDelete an environment with its users and saved passwords. Ask the user to confirm first - this cannot be undone. The only environment of a project cannot be deleted. When the default environment is deleted, the first remaining environment becomes the default. Returns: { environments, warning? } where environments are the remaining ones, same shape as getEnvironments.
deleteFeature
ChatGPTDelete a feature together with all its tests and UI Components. Not available while the project is in trial (evaluation) - only on a paid plan. The built-in login feature cannot be deleted. Ask the user to confirm first, naming the feature and how many tests will be deleted with it - this cannot be undone. Returns: a confirmation message.
deleteTest
ChatGPTDelete a test. Results of past runs are kept. Ask the user to confirm first - this cannot be undone. Returns: a confirmation message.
deleteTestSuite
ChatGPTDelete a test suite. Its tests are kept and only removed from the suite, and its scheduled runs are cancelled. Ask the user to confirm first - this cannot be undone. Returns: a confirmation message.
editEnvironment
ChatGPTEdit an environment: name, default flag, base URL, login page, VPN flag, social provider, custom login description, pagesInitScript (the script run on every page), extra HTTP headers (a list of { name, value }) and users. Pass only the fields to change - null keeps the current value. When users or extraHTTPHeaders is passed it replaces the full list. Returns: { environment, warning? } where environment has the same shape as getEnvironments.
editFeature
ChatGPTEdit a feature overview and definition for a project. Returns: "OK" on success.
editTest
ChatGPTEdit a test for a project based on the provided data. Returns: "OK" on success.
editTestSuite
ChatGPTEdit the name or description of a test suite. Pass only the fields to change - null keeps the current value. To change which tests are in a suite, use the testSuites field of editTest. Returns: "OK" on success.
findFeatureByUrl
ChatGPTLook for an existing feature whose URL ends with the same path as the given URL. Call it before createFeature to warn the user about a duplicate. Returns: { _id: string, name: string } or "No feature found for this URL"
getAllFeatures
ChatGPTGet all features in the project with their name, URL and overview. Returns: Array<{ featureId: string, name: string, url: string, overview: string }>
getAllTests
ChatGPTGet all tests in the project. Prefer calling getTestsByFeatureId() tool over this function as it may return tests that you don't need. Returns: Array<{ _id: string, name: string, title: string, description: string, status: string }>
getBillingPlans
ChatGPTGet the subscription plans Testifly offers - name, monthly and yearly price, how many tests each plan may automate, and what it includes - together with the plan this project is on now, how much of its test budget is already used, and the link to the Billing settings. Call it for any question about plans, pricing, test limits, the trial, upgrading or downgrading. It also answers while the project is read only. Returns: the plans and the current plan as Markdown text.
getEnvironments
ChatGPTGet the environments of the project (for example production and staging) with their settings and users. Passwords and login links or codes are never returned. Returns: Array<{ _id: string, name: string, isDefault: boolean, landingPage: string, loginPage?: string, isBehindVPN: boolean, extraHTTPHeaders?: Record<string, string>, hooks?: { pagesInitScript?: string }, socialProvider?: string, customLoginDescription?: string, users: Array<{ _id: string, user: string, email?: string, role: string, lastLoginTokenDate?: string }> }>
getFeatureDetails
ChatGPTGet the overview and definition of a feature in the project. Returns: { featureId: string, overview: string, definition: string }
getFeatureUIComponents
ChatGPTGet the UI Components of a feature in the project. Returns: Array<{ componentId: string, name: string, description: string, elementType: string }>
getJiraItemsByIssueKeys
ChatGPTGet Jira issue details by issue keys. Returns: Array<{ id: string, key: string, summary: string, ... }>
getLatestRunOfTestSuites
ChatGPTGet the last run statistics for every test suite in the project. Returns an array where each entry has testRunId, testSuiteId, testSuiteName, lastRunAt, runStatus, durationMS. and counts of: totalTests, testsPassed, testsFailed, testsSkipped, testsAwaitingUserFeedback. Suites with no runs will not be returned
getLinearItemsByIssueKeys
ChatGPTGet Linear issue details by issue keys. Returns: Array<{ id: string, key: string, title: string, ... }>
getPresentationGuidance
ChatGPTMUST be called at the start of every new session before any other tool. Returns guidance on how to present Testifly data to the user, including formatting rules, tone, and display conventions. Call this once per session and follow the returned instructions throughout.
getProductDoc
ChatGPTRead the full text of one Testifly documentation page found with searchProductDocs. Answer from this text and end with the Markdown link given on its first line. Returns: the page as markdown
getProjects
ChatGPTGet all Testifly projects the authenticated user has access to. Call this first when using OAuth authentication to discover available project IDs. Returns: Array<{ id: string, name: string, url: string }>
getRunDetails
ChatGPTGet one test run: its title, status, start time, result counts, and the results of its tests (failed/awaiting-input tests first, up to 30, with their errors). Use this for "why did this run fail", "summarize this run" or "what changed in this run" questions. Returns: { runId: string, title: string, status: string, startTime: string, statuses: Array<{ label: string, count: number }>, tests: Array<{ _id: string, title: string, status: string, error?: string, previousStatus?: string }> }
getTestDetails
ChatGPTGet the details of a test in the project. Returns: { name: string, title: string, status: string, description: string, collectedUiComponents: any[], steps: {description:string, expected:string}[], prerequisiteNames: any[] }
getTestRunsAndResults
ChatGPTGet the test runs of a test in the project. Returns: Array<object> (structure depends on getRunsOfTest, but typically includes run details and results)
getTestSuites
ChatGPTGet the test suites of a project. Returns: Array<{ name: string, description: string }>
getTestWritingGuide
ChatGPTGet the rules for writing Testifly tests, so the Testifly agent can automate them: what to check before writing, how to split steps, what to be exact about, which data to use and what not to test. Call it before you write tests for createTests or editTest (once per session is enough). Returns: the rules as Markdown text.
getTestsByFeatureId
ChatGPTGet the tests of a feature in the project. Returns: Array<{ _id: string, name: string, title: string, description: string, status: string }>
getTestsOfTestSuite
ChatGPTGet the tests that belong to one test suite. Returns: Array<{ _id: string, name: string, title: string, description: string, status: string }>
getUIComponentsSummaryByFeature
ChatGPTGet only the name, description and elementType of UI Components for a feature. Returns: Array<{ name: string, description: string, elementType: string }>
listJiraItemsMovedToReadyForTestingStatus
ChatGPTGet Jira issues that moved to the configured ready-for-testing status in the last day. Returns: Array<{ id: string, key: string, summary: string, ... }>
listJobs
ChatGPTList the most recent background jobs of the project (test creation, automation, execution, scraping...), most recent first, optionally filtered by status. Use this for "is it still working", "which jobs are running" or "why did my last job fail" questions - a failed job's error is included. Returns: Array<{ _id: string, type: string, status: string, error?: string, createdAt: string, updatedAt: string }>
listLinearItemsChangedInLastDay
ChatGPTGet Linear issues changed in the configured team/status over the last day. Returns: Array<{ id: string, key: string, title: string, ... }>
listLinearTeamsForSelector
ChatGPTGet Linear teams available for the saved integration. Returns: Array<{ id: string, key: string, name: string }>
listRuns
ChatGPTList the most recent test runs of the project, most recent first, optionally filtered by status or how recently they started. Each entry is a summary (status, start/end time, what triggered it, pass/fail counts) - call getRunDetails for one run's full results. Returns: Array<{ runId: string, status: string, startTime: string, endTime: string, triggeredOn: { features?: string[], tests?: string[], testSuites?: string[] }, totalTests: number, testsPassed: number, testsFailed: number, testsSkipped: number, testsAwaitingUserFeedback: number }>
runTests
ChatGPTRun tests in the background, the same as the Run buttons in the app. Give exactly one target: testIds, featureId or testSuiteId. Only automated tests run (tests that already have code, for example Ready To Run, Passed or Failed). Tests that are still being automated or saved as Draft are skipped. Returns: a message with the number of tests and the job id. Follow the job with listJobs; when it ends, its results are in listRuns and getRunDetails.
searchJiraItemsForSelector
ChatGPTSearch Jira issues by query and optional Jira project IDs. Returns: Array<{ id: string, key: string, summary: string, issueType?: string, issueTypeId?: string, status?: string }>
searchLinearItemsForSelector
ChatGPTSearch Linear issues by query and optional team IDs. Returns: Array<{ id: string, key: string, title: string, ... }>
searchProductDocs
ChatGPTSearch the Testifly product documentation (how the product works, how to use each page and setting, statuses, runs, schedules, integrations, trial and billing). Use it for any "how do I", "what does ... mean" or "why did ..." question about the product itself. Returns: Array<{ title: string, url: string, markdownLink: string, description: string, type: string }>, best match first. Use markdownLink when linking to a page