# Fs List

> List files and directories under scenarios/<world_name>/fs; returns one Note whose body is a text listing (like ls).

- Skill: `bdambrosio/fs-list` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add bdambrosio/fs-list`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bdambrosio/fs-list/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bdambrosio (https://skillmd.com/u/bdambrosio)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/bdambrosio/fs-list

---


# fs-list

List files and directories within the filesystem sandbox for the current world.

## Input

- `path`: Relative path under `scenarios/<world_name>/fs` (default: root)
- `recursive`: Whether to recurse into subdirectories (default: false)
- `include_files`: Include files (default: true)
- `include_dirs`: Include subdirectory lines in the listing (default: true)
- `max_entries`: Max lines to emit before truncation (default: 200)

## Output

Success returns:

- `resource_id`: **Note** ID (not a Collection)
- The Note's **text body** is a human-readable directory listing:
  - First line: the listed path (relative)
  - **Directories**: `dirname/` (trailing slash)
  - **Files**: `filename  (size)` — e.g. `readme.md  (2.1K)`, `note.txt  (219B)`
  - Truncation line if `max_entries` reached

**Read the listing with `get_text("$your_out_var")`.** Do **not** use `get_items` — that is only for Collections.

How to interpret the text for a given goal is left to the planner.

## Examples

```json
{"type":"fs-list","path":".","out":"$root"}
{"type":"fs-list","path":"docs","recursive":true,"out":"$docs_tree"}
```

After `out="$root"`, read the body with `get_text("$root")`.

