<!-- enhance-docs page=reference/cli/comment/list -->
<!-- enhance-docs release-sha256=8a804cfc9a6fc6b942b8daf6a82266ad6e308291ae4351abee3346bc696d1258 -->

# enhance-dev comment list

```text
enhance-dev comment list [options]
```

## Arguments

This command takes no positional arguments.

## Options

| Option | Required | Default | Meaning |
| --- | --- | --- | --- |
| `--context [json]` | No | None | Observed canvas context as JSON with the complete canvasRef and expectedVersion. |
| `--page [json]` | No | None | Bounded comment page as JSON with cursor and limit; preserve the returned cursor. |
| `--canvas-id <string>` | Yes | None | Canvas id, from `enhance canvas list`. |
| `--filter [string]` | No | `open` | Comment state to return: open, resolved, or all. |
| `--author-person-id [string]` | No | None | Only comments by this person id, from a comment author object. |
| `--agent-actionable [boolean]` | No | `false` | Set true to require an element source file; use `--filter` open for open actionable threads. |
| `--query [string]` | No | None | Text to match in comment message bodies. |
| `--json <json>` | No | None | Complete procedure input as JSON; do not combine it with field flags. |

## Input

This command presents the capability `comment.list`. It has read effect and none idempotency.

<details class="reference-schema">
<summary>Show complete input JSON Schema</summary>

```json
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"context":{"type":"object","properties":{"canvasRef":{"type":"string","minLength":1},"expectedVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["canvasRef","expectedVersion"],"additionalProperties":false},"page":{"type":"object","properties":{"cursor":{"default":null,"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"limit":{"default":20,"type":"integer","minimum":1,"maximum":100}}},"canvasId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"filter":{"default":"open","type":"string","enum":["open","resolved","all"]},"authorPersonId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentActionable":{"default":false,"type":"boolean"},"query":{"type":"string","maxLength":200}},"required":["canvasId"]}
```
</details>


## Output

This command writes JSON records to standard output. Returns a typed comment.list result from the Enhance API without transport-specific prose.

<details class="reference-schema">
<summary>Show complete output JSON Schema</summary>

```json
{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"revision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"threadId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"canvasId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"anchor":{"oneOf":[{"type":"object","properties":{"on":{"type":"string","const":"canvas"},"point":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"pageId":{"type":"string","minLength":1,"maxLength":256}},"required":["on","point"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"node"},"nodeId":{"type":"string","minLength":1},"point":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"element":{"type":"null"}},"required":["on","nodeId","point","element"],"additionalProperties":false},{"type":"object","properties":{"on":{"type":"string","const":"screen"},"nodeId":{"type":"string","minLength":1},"screenId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"point":{"type":"object","properties":{"x":{"type":"number"},"y":{"type":"number"}},"required":["x","y"],"additionalProperties":false},"element":{"anyOf":[{"type":"object","properties":{"selector":{"type":"string","minLength":1},"tagName":{"type":"string","minLength":1},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"file":{"type":"string","minLength":1},"line":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["file","line"],"additionalProperties":false},{"type":"null"}]}},"required":["selector","tagName","label","source"],"additionalProperties":false},{"type":"null"}]},"target":{"oneOf":[{"type":"object","properties":{"version":{"type":"number","const":1},"kind":{"type":"string","const":"element"},"locator":{"type":"object","properties":{"selector":{"type":"string","minLength":1},"tagName":{"type":"string","minLength":1},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"file":{"type":"string","minLength":1},"line":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["file","line"],"additionalProperties":false},{"type":"null"}]},"role":{"type":"string","minLength":1}},"required":["selector","tagName","label","source"],"additionalProperties":false},"attachment":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"],"additionalProperties":false},"fallbackBounds":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0,"maximum":1},"height":{"type":"number","minimum":0,"maximum":1}},"required":["x","y","width","height"],"additionalProperties":false}},"required":["version","kind","locator","attachment","fallbackBounds"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":1},"kind":{"type":"string","const":"text"},"root":{"type":"object","properties":{"selector":{"type":"string","minLength":1},"tagName":{"type":"string","minLength":1},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"file":{"type":"string","minLength":1},"line":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["file","line"],"additionalProperties":false},{"type":"null"}]},"role":{"type":"string","minLength":1}},"required":["selector","tagName","label","source"],"additionalProperties":false},"quote":{"type":"object","properties":{"exact":{"type":"string","minLength":1},"prefix":{"type":"string"},"suffix":{"type":"string"}},"required":["exact","prefix","suffix"],"additionalProperties":false},"range":{"type":"object","properties":{"start":{"type":"object","properties":{"path":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["path","offset"],"additionalProperties":false},"end":{"type":"object","properties":{"path":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}},"offset":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["path","offset"],"additionalProperties":false}},"required":["start","end"],"additionalProperties":false},"attachment":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"],"additionalProperties":false},"fallbackBounds":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0,"maximum":1},"height":{"type":"number","minimum":0,"maximum":1}},"required":["x","y","width","height"],"additionalProperties":false}},"required":["version","kind","root","quote","range","attachment","fallbackBounds"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":1},"kind":{"type":"string","const":"elements"},"members":{"minItems":2,"type":"array","items":{"type":"object","properties":{"selector":{"type":"string","minLength":1},"tagName":{"type":"string","minLength":1},"label":{"anyOf":[{"type":"string"},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"file":{"type":"string","minLength":1},"line":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["file","line"],"additionalProperties":false},{"type":"null"}]},"role":{"type":"string","minLength":1}},"required":["selector","tagName","label","source"],"additionalProperties":false}},"truncated":{"type":"boolean"},"attachment":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"],"additionalProperties":false},"fallbackBounds":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0,"maximum":1},"height":{"type":"number","minimum":0,"maximum":1}},"required":["x","y","width","height"],"additionalProperties":false}},"required":["version","kind","members","truncated","attachment","fallbackBounds"],"additionalProperties":false},{"type":"object","properties":{"version":{"type":"number","const":1},"kind":{"type":"string","const":"area"},"bounds":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0,"maximum":1},"height":{"type":"number","minimum":0,"maximum":1}},"required":["x","y","width","height"],"additionalProperties":false},"attachment":{"type":"object","properties":{"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1}},"required":["x","y"],"additionalProperties":false}},"required":["version","kind","bounds","attachment"],"additionalProperties":false}]}},"required":["on","nodeId","screenId","point","element"],"additionalProperties":false}]},"author":{"type":"object","properties":{"kind":{"type":"string","enum":["person","agent"]},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"initials":{"type":"string","minLength":1,"maxLength":4},"avatarUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"tokenLabel":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["kind","personId","name","initials","avatarUrl","tokenLabel"],"additionalProperties":false},"messages":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"seq":{"type":"integer","minimum":1,"maximum":9007199254740991},"body":{"type":"string","minLength":1},"isDeleted":{"type":"boolean"},"author":{"type":"object","properties":{"kind":{"type":"string","enum":["person","agent"]},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"initials":{"type":"string","minLength":1,"maxLength":4},"avatarUrl":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}]},"tokenLabel":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["kind","personId","name","initials","avatarUrl","tokenLabel"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"editedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"mentions":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["personId","name"],"additionalProperties":false}},"reactions":{"type":"array","items":{"type":"object","properties":{"emoji":{"type":"string","minLength":1,"maxLength":16},"people":{"minItems":1,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120}},"required":["personId","name"],"additionalProperties":false}}},"required":["emoji","people"],"additionalProperties":false}}},"required":["messageId","seq","body","isDeleted","author","createdAt","editedAt","mentions","reactions"],"additionalProperties":false}},"messageCount":{"type":"integer","minimum":1,"maximum":9007199254740991},"hasMoreMessages":{"type":"boolean"},"isResolved":{"type":"boolean"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"resolvedBy":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","enum":["person","agent"]},"personId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1,"maxLength":120},"tokenLabel":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["kind","personId","name","tokenLabel"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"lastMessageAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["revision","threadId","canvasId","anchor","author","messages","messageCount","hasMoreMessages","isResolved","resolvedAt","resolvedBy","createdAt","lastMessageAt"],"additionalProperties":false}},"truncated":{"type":"boolean"},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["items","truncated"],"additionalProperties":false}
```
</details>


## Examples

```bash
enhance-dev comment list --canvas-id <string>
```

<details class="reference-schema">
<summary>Show example input</summary>

```json
{
 "canvasId": "00000000-0000-4000-8000-000000000010"
}
```
</details>

<details class="reference-schema">
<summary>Show example output</summary>

```json
{
 "items": [],
 "truncated": false
}
```
</details>

## Exit behaviour

| Exit code | Meaning |
| --- | --- |
| `0` | The command succeeded. |
| `1` | The command failed for another reason (`INTERNAL`). A write may have an unknown outcome. |
| `2` | The command line was malformed. Nothing ran. |
| `3` | The API refused the input (`BAD_REQUEST`). |
| `4` | The credential is missing or expired (`UNAUTHORIZED`). |
| `5` | The API refused the request (`FORBIDDEN`, `NOT_FOUND`, `CONFLICT`, `RATE_LIMITED`). |
| `6` | A batch finished only in part. Retry with the same `--client-token`. |

## Versions

Minimum tested versions: Enhance CLI and MCP runtime 0.1.40, plugin 1.0.38, Node.js 24. No older floor is published.
