add_attachment
Attach files to TestRail test cases or runs. Directories are zipped automatically; supports up to 256MB uploads.
Instructions
Add an attachment to a test case or test run in TestRail. If the file_path points to a directory, it will be automatically zipped before uploading. Maximum upload size is 256MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | The ID of the entity to attach the file to (e.g. 123 or 'C123' for cases, or numeric run ID) | |
| file_path | Yes | The path to the file or directory to attach. Directories will be automatically zipped. | |
| entity_type | Yes | The type of entity to attach the file to ('case' or 'run') |