All tools

file_list

Files & Finder · macOS · Windows

Effect: read (strongest supported action). Status: gated.

Gated means the tool requires an installed app, a connected account, permission, or runtime availability. Check those requirements on the listed platform before using it.

macOS

Purpose

Lists files and folders in a local directory. Defaults to the user's home directory. Returns name, path, type (file/directory), size, and modification date for each item. Sorted: directories first, then files, both alphabetically.

Required inputs

No required inputs are declared in this platform's schema. Optional selectors and runtime requirements may still apply.

Permissions and confirmation

No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.

Full input schema — macOS
{
  "properties": {
    "path": {
      "description": "Absolute path to the directory. Defaults to the home directory (~) if omitted.",
      "type": "string"
    },
    "show_hidden": {
      "description": "Include hidden files (starting with '.'). Default false.",
      "type": "boolean"
    }
  },
  "required": [],
  "type": "object"
}

Documentation example

Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.

{
  "path": "/Users/demo/Documents"
}

Windows

Purpose

Lists files and folders in a local directory. Defaults to the user's home directory. Returns name, path, type (file/directory), size and modification time for each item. The path must be inside an allowed folder (home directory by default).

Required inputs

No required inputs are declared in this platform's schema. Optional selectors and runtime requirements may still apply.

Permissions and confirmation

No explicit confirmation parameter is exposed in this snapshot. This does not grant permission to act: obtain user authorization before any real action.

Full input schema — Windows
{
  "properties": {
    "path": {
      "description": "Absolute path to the directory. Defaults to the home directory (~) if omitted.",
      "type": "string"
    },
    "show_hidden": {
      "description": "Include hidden files (dotfiles). Default false.",
      "type": "boolean"
    }
  },
  "required": [],
  "type": "object"
}

Documentation example

Do not execute this example. These concrete inputs refer to a fictional demonstration dataset. Resolve real handles and obtain user authorization before any real call.

{
  "path": "C:\\Users\\demo\\Documents"
}