Skip to main content

Documentation Index

Fetch the complete documentation index at: https://trunk-4cab4936-mintlify-migrate-docs-changes-1778007735.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The search-test tool looks up the ID of a test case given its name. Return Type: Metadata about the test, including its ID.

Parameters

Required Parameters

ParameterTypeDescription
repoNamestringRepository name in owner/repo format (e.g., trunk-io/trunk)
testNameSearchstringSearch string for the test name. Does not include filepaths

Optional Parameters

ParameterTypeDescription
orgSlugstringThe name of your organization in the Trunk app
limitnumberLimit for test results to return, up to 20

Getting Parameter Values

If your AI assistant doesn’t have direct access to Git information, use these commands: Get repository name:
git remote -v
Look for the repository name in the output (e.g., trunk-io/trunk from git@github.com:trunk-io/trunk.git)

Usage Examples

What's the test case ID for the test "clear all filters button appears in empty state and clears filters"

Error Handling

ErrorCauseResolution
No tests matched {searchString} in repo {repoName}No results foundCheck your search string and try again
Repository authorization errorInsufficient permissions or invalid repo nameVerify repository name format and your access permissions