{
  "source": "./stream.js",
  "method": "read",
  "hidden": true,
  "input-schema": {
    "type": "object",
    "additionalProperties": false,
    "properties": {
      "source": {
        "type": "any",
        "description": "Source stream. Should be a readable stream.",
        "required": true
      },
      "size": {
        "type": "integer",
        "description": "Specific number of bytes to read. If size bytes are not available to be read, null will be returned unless the stream has ended, in which case all of the data remaining in the internal buffer will be returned. If not specified, all of the data contained in the internal buffer will be returned. Must be less than or equal to 1 GiB"
      }
    }
  },
  "output-schema": {
    "type": "object",
    "properties": {
      "data": {
        "type": "any",
        "description": "Data read from the stream."
      }
    }
  },
  "meta": {
    "name": "read",
    "description": "Read data from the stream."
  }
}