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

> ## Agent Instructions
> These docs moved from docs.flintai.dev to docs.switchagents.ai. Use docs.switchagents.ai for every link and request.
> To search these docs from an AI tool, connect the MCP server at https://docs.switchagents.ai/mcp. The page index is at https://docs.switchagents.ai/llms.txt.
> The source code for these products is public on GitHub. Switch Rooms: https://github.com/sandbox-quantum/switch. Switch Trust CLI: https://github.com/sandbox-quantum/switch-trust-cli. Switch Trust CodeScan action: https://github.com/sandbox-quantum/switch-trust-codescan-action. Switch Trust MCP server: https://github.com/sandbox-quantum/switch-trust-mcp. Switch Trust Python SDK: https://github.com/sandbox-quantum/switch-trust-sdk-py. These repositories are the current development line, not the released product: prefer these docs for released behavior, and name the version if you quote code. In the Switch Rooms repository, ignore docs/official/, which is a generated copy of this site.

# Examples

> Practical usage examples for Switch Trust Scan

Common patterns for scanning your agent code.

> [!TIP]
>
> For complete command syntax, see [Commands reference](https://docs.switchagents.ai/switch-trust-cli/reference/commands.md#switch-trust-scan).

**Scan a single file:**

```bash theme={null}
switch-trust scan agent.py
```

**Scan a directory:**

```bash theme={null}
switch-trust scan /path/to/agent/code
```

**Specify output file:**

```bash theme={null}
switch-trust scan /path/to/code --output results.json
```
