> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apowerb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get File Content

> Fetch a OneDrive file by item ID and return its contents as a
base64 data-URI so the browser can construct a File object without
exposing the pre-authenticated download URL.

Size limit: 20 MB. Larger files should be downloaded via
tool_download_file instead.



## OpenAPI

````yaml /api-reference/openapi.json get /api/onedrivebrowser/content
openapi: 3.1.0
info:
  title: apowerb API
  description: REST API of the apowerb agentic framework (open-source edition).
  version: 0.1.2
  license:
    name: MIT
    url: https://github.com/apowerb/apowerb/blob/main/LICENSE
servers:
  - url: https://api.example.com
    description: Your apowerb instance
  - url: http://localhost:8000
    description: Local stack
security: []
paths:
  /api/onedrivebrowser/content:
    get:
      tags:
        - onedrive-browser
      summary: Get File Content
      description: |-
        Fetch a OneDrive file by item ID and return its contents as a
        base64 data-URI so the browser can construct a File object without
        exposing the pre-authenticated download URL.

        Size limit: 20 MB. Larger files should be downloaded via
        tool_download_file instead.
      operationId: get_file_content_api_onedrivebrowser_content_get
      parameters:
        - name: item_id
          in: query
          required: true
          schema:
            type: string
            title: Item Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

## Related topics

- [Get File Content](/api-reference/google-drive-browser/get-file-content.md)
- [List Files](/api-reference/files/list-files.md)
- [Search Files](/api-reference/onedrive-browser/search-files.md)
- [Download File](/api-reference/files/download-file.md)
