{
  "source": "../file.js",
  "method": "list",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "path": {
        "type": "string",
        "description": "Path to a directory whose files are to be listed.",
        "format": "filechooser",
        "formatOptions": {
            "type": "folder"
        },
        "required": true
      },
      "recursive": {
        "type": "boolean",
        "format": "plain"
      }
    }
  },
  "output-schema": {
    "type": "array",
    "items": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    }
  },
  "meta": {
    "name": "list",
    "description": "Read a directory and return its contents."
  }
}