> ## Documentation Index
> Fetch the complete documentation index at: https://docs.automate.ax/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# List files

> List Slack files with channel, owner, time, and type filters.

`slack.listFiles` searches the workspace's Slack files using provider-supported filters.

## Example

```ts automations/list-files.automation.ts theme={null}
import { automation, onDashboardRun } from "automate.ax"
import { slack } from "automate.ax/slack"

export default automation("List files", () => {
  onDashboardRun({ title: "List files" })

  slack.listFiles({ conversationId: "C01234567", count: 100, page: 1 })
})
```

## Inputs

Optional filters are `conversationId`, `userId`, `startAt`, `endAt`, and comma-separated `types`. Slack uses legacy pagination through one-based `page` and `count`; `showFilesHiddenByLimit` requests truncated metadata for plan-hidden files.

## Output

Returns normalized `files` plus `page`, `pageCount`, `pageSize`, and `total`. Requires `files:read`.
