ls

built-in
9.9% Savings
62 Commands
630 Tokens saved
2 Tests

Install

tokf install bce92318aa7709f75e83ccc05c04b34db20ef213d60c95c8feb666e5b45351db
Safety checks passed

Filter definition

command = "ls"

[on_success]
head = 50

[on_failure]
tail = 5

Examples

failed ls shows error message ~14 tokens → ~14 tokens
Raw output
ls: cannot access '/no/such/dir': No such file or directory
Filtered output
ls: cannot access '/no/such/dir': No such file or directory
ls output passes through unchanged ~5 tokens → ~5 tokens
Raw output
Cargo.toml
src
tests
Filtered output
Cargo.toml
src
tests
Warning: Community filters are third-party code. Review the filter definition above before installing it in production environments.
Browse all filters