> ## 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 channel messages

> List root messages in a Microsoft Teams channel.

`listChannelMessages` lists top-level channel messages. It does not expand each
message's replies; use `listChannelMessageReplies` for a thread.

## Example

```ts automations/read-teams-channel.automation.ts theme={null}
import { automation } from "automate.ax"
import { listChannelMessages } from "automate.ax/teams"

export default automation("Read Teams channel", () => {
  listChannelMessages({ team: "Engineering", channel: "General", limit: 50 })
})
```

## Inputs

Required `team` and `channel` accept exact display names or IDs. Optional `limit`
defaults to 100 (1–10,000) and `account` defaults to the project binding.

## Output

Returns normalized messages with `messageId`, `messageType`, `body`,
`importance` (default `normal`), and default-empty `attachments`, `mentions`, and
`reactions`, plus available timestamps, sender identity, reply parent, subject,
summary, locale, web URL, and ETag. Body content may be `text` or `html`.
