{
  "source": "../file.js",
  "method": "rename",
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "currentPath": {
        "type": "string",
        "description": "Path of source file or directory to be renamed.",
        "format": "filechooser",
        "required": true
      },
      "newPath": {
        "type": "string",
        "description": "Path to which the source file or directory should be named.",
        "required": true
      },
      "override": {
        "description": "Override destination if exists.",
        "type": "boolean",
        "format": "plain"
      }
    }
  },
  "output-schema": {
      "type": "object",
      "properties": {
          "newPath": {
            "type": "string"
          }
      }
  },
  "meta": {
    "name": "rename",
    "description": "Rename a file or directory. This action won't work across devices."
  }
}