# commands.list

Source: https://docs.lightair.app/developers/remote-api/commands.list

> Lists every document command commands.execute takes, with its fields, their JSON types and an example.

JSON-RPC 2.0 method of Lightair's Remote API (ws://localhost:4455/rpc). Group: History and commands. Script plugins need the `project.read` permission.

## Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `filter` | `string` | no | Only commands that match these words. |

## Result

| Name | Type | Required | Description |
|---|---|---|---|
| `commands` | `{ name: string, about: string, fields: { name: string, type: string, about: string }[], example: any }[]` | no | The commands. |

## From an AI agent

The MCP server's `list_commands` reaches this method.

## Related

- [commands.execute](https://docs.lightair.app/developers/remote-api/commands.execute.md)
