# mcp.policy.Selection.parse

- **Module:** mcp.policy.Selection
- **Package:** tmux-mcp
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/tmux-mcp/src/policy.rs#L124
- **Page:** https://libtmux.org/en/rs/latest/mcp/reference/mcp-policy-selection-parse/

```
mcp.policy.Selection.parse(toolsets: Option<&str>, include: Option<&str>, exclude: Option<&str>) -> Result<Self, SurfaceError>
```

Parse the three list settings before any tmux connection is opened.

# Errors

Returns an error for empty tokens or unknown tool and toolset names.
