# LibTmux::Server::operation

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Perl
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-perl/blob/352715a4fa66a96eed7763b90daaa536aa2f121d/packages/core/lib/LibTmux/Server.pm#L854
- **Page:** https://libtmux.org/en/perl/latest/reference/libtmux-server-operation/

```
sub operation($self, $name, %args)
```

`operation($name, %arguments)` validates and copies arguments, returning one [`LibTmux::Operation`](/en/perl/latest/reference/libtmux-operation/) without I/O. The optional Future facade shares this preparation and parsing boundary. Use the named methods above for synchronous execution. Invalid arguments or criteria throw [`"InvalidArgument" in LibTmux::X`](/en/perl/latest/reference/libtmux-x-invalidargument/) or [`"InvalidFilter" in LibTmux::X`](/en/perl/latest/reference/libtmux-x-invalidfilter/) before submission.

```perl
    my $operation = $server->operation('snapshot');
```

## Methods

## Parameters

- `name`
- `args`
