# libtmux._internal.log_context._select_carrier_targets

- **Module:** libtmux._internal.log_context
- **Package:** libtmux
- **Language:** Python
- **Kind:** function
- **Source:** https://github.com/tmux-python/libtmux/blob/efdbb5637666b166358772ecc737b3807beab21e/src/libtmux/_internal/log_context.py#L399
- **Page:** https://libtmux.org/en/py/latest/reference/libtmux-_internal-log_context-_select_carrier_targets/

```
libtmux._internal.log_context._select_carrier_targets(
    canonical: str,
    flags_seen: set[str],
    tokens: Sequence[str],
    positional: Sequence[int],
) -> _CarrierSelection
```

Identify carrier positional items or tail command slices for *canonical*.

## Parameters

- `canonical` (`str`)
- `flags_seen` (`set[str]`)
- `tokens` (`Sequence[str]`)
- `positional` (`Sequence[int]`)
