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

# Get Result Content

> Read a character slice of a text-shaped stored result.

Reads a `text`-shaped result, by character offsets.

`startChar` defaults to 0 and must be `>= 0`. `maxChars` defaults to 20000 and must be from 1 to 100000. `nextStartChar` is the next offset, or `null` at the end.

```javascript theme={null}
const response = await fetch(
  `https://agentos.useparagon.com/api/tools/projects/${projectId}/results/${resultId}/content?startChar=0&maxChars=20000`,
  { headers: { Authorization: `Bearer ${paragonUserToken}` } },
);
```


## OpenAPI

````yaml agent-os/openapi/tools.json GET /api/tools/projects/{projectId}/results/{resultId}/content
openapi: 3.1.0
info:
  title: Agent OS Tools API
  version: 1.0.0
  description: Enable your agent to take action in 130+ different apps with Agent OS Tools.
servers:
  - url: https://agentos.useparagon.com
    description: Production US Cloud
  - url: https://agentos.eu.paragon.so
    description: Production EU Cloud
security:
  - bearerAuth: []
paths:
  /api/tools/projects/{projectId}/results/{resultId}/content:
    get:
      summary: Get Result Content
      operationId: getResultContent
      parameters:
        - $ref: '#/components/parameters/ProjectId'
        - name: resultId
          in: path
          required: true
          schema:
            type: string
        - name: startChar
          in: query
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: maxChars
          in: query
          schema:
            type: integer
            minimum: 1
            maximum: 100000
            default: 20000
      responses:
        '200':
          description: A character slice of a text result.
          content:
            application/json:
              schema:
                type: object
                required:
                  - startChar
                  - endChar
                  - totalChars
                  - text
                  - nextStartChar
                  - tokenBudget
                properties:
                  startChar:
                    type: integer
                  endChar:
                    type: integer
                  totalChars:
                    type: integer
                  text:
                    type: string
                  nextStartChar:
                    oneOf:
                      - type: integer
                      - type: 'null'
                  tokenBudget:
                    type: object
                    required:
                      - fullOutputTokens
                      - returnedTokens
                      - savedTokens
                    properties:
                      fullOutputTokens:
                        type: integer
                      returnedTokens:
                        type: integer
                      savedTokens:
                        type: integer
              example:
                startChar: 0
                endChar: 11
                totalChars: 11
                text: hello world
                nextStartChar: null
                tokenBudget:
                  fullOutputTokens: 3
                  returnedTokens: 3
                  savedTokens: 0
        '400':
          $ref: '#/components/responses/Error'
        '401':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
components:
  parameters:
    ProjectId:
      name: projectId
      in: path
      required: true
      schema:
        type: string
        format: uuid
  responses:
    Error:
      description: Error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
          example:
            error:
              code: REQUEST_INVALID
              message: The request payload failed validation.
              hint: Correct the fields named in details and retry.
              retryable: false
              requestId: req_01hxyz
              details:
                - field: query
                  issue: query should not be empty
  schemas:
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - hint
            - retryable
            - requestId
          properties:
            code:
              type: string
            message:
              type: string
            hint:
              type: string
            retryable:
              type: boolean
            retryAfterMs:
              type: integer
            requestId:
              type: string
            details:
              type: array
              items:
                type: object
                required:
                  - field
                  - issue
                properties:
                  field:
                    type: string
                  issue:
                    type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````