---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://segmentstream.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# segmentstream agent logs

Read redacted agent action logs (last 24 hours by default; window at most 31 days)

## Usage

Command syntax

```
segmentstream agent logs [OPTIONS] [COMMAND] [ARGS]...
```

## Options

- `--cursor TEXT`

  Resume from nextCursor

- `--json`

- `--output [table|json]`

  Output format \[default: table]

- `--workspace UUID`

- `--organization ORG`

- `--api-url URL`

- `--since ISO`

  Inclusive ISO timestamp

- `--until ISO`

  Inclusive ISO timestamp

- `--chat TEXT`

  Provider chat ID, or a chat's title in the agent's chat registry (case-insensitive); use --chat=-123 for negative IDs

- `--user TEXT`

  Provider sender ID

- `--session TEXT`

- `--turn TEXT`

- `--tool TEXT`

- `--status TEXT`

- `--kind TEXT`

- `--query TEXT`

  Literal text search over messages, args, results and errors

- `--limit INTEGER RANGE`

  \[default: 50; 1<=x<=200]

- `--all`

  Follow at most 100 pages

- `--help`

  Show this message and exit.

## Subcommands

[**segmentstream agent logs call**Full redacted args/results/errors for a tool call](https://segmentstream.com/docs/cli/agent/logs/call)

[Read as Markdown ↗](https://segmentstream.com/docs/cli/agent/logs.md)
