> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.doc-detective.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.doc-detective.com/_mcp/server.

# checkFile

> Reference for the `checkFile` schema.

## Referenced In

* [test](/reference/schemas/test)
* [Resolved context](/reference/schemas/resolved-context)

## Fields

| Field     | Type                                                                                       | Description                                                                                                                                                                                                                                                                                       | Default |
| :-------- | :----------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :------ |
| checkFile | one of: - string - object([Check file (detailed)](/reference/schemas/check-file-detailed)) | Required. Wait for a finished file, and optionally check its text. A file is finished once it has no `.crdownload` or `.part` suffix, no in-progress sibling of the same name with one of those suffixes, and its size stays the same for 250 ms. Outputs `filePath`, `fileName`, and `fileSize`. | —       |

## Examples

```json
{
  "checkFile": "out/report.txt"
}
```

```json
{
  "checkFile": {
    "path": "out/*.log",
    "content": "/build \\d+ passed/"
  }
}
```

```json
{
  "checkFile": {
    "download": "*.csv"
  }
}
```

```json
{
  "checkFile": {
    "download": "invoice-*.csv",
    "content": "Invoice",
    "timeout": 60000
  }
}
```