# getPreprintFullText

**Identifier:** `biorxiv_getPreprintFullText`

**Provider:** [bioRxiv and medRxiv](https://kirha.com/providers/biorxiv.md)

Read the full text of a bioRxiv or medRxiv preprint as clean Markdown sections (abstract, body, figure and table captions, back matter; reference list excluded, and most tables are posted as images so only their caption is in the text), paginated by characters. Returns the section outline so you can re-call with `sections` to read only the methods, the results, a given table, etc. Prefer findPreprintPassages to answer a specific question: preprint full texts run 50-300K characters.

## Run it with the CLI

```bash
kirha tools run biorxiv_getPreprintFullText \
  --input '{
    "doi": "10.1101/2024.05.03.592390"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "biorxiv_getPreprintFullText",
  "input": {
    "doi": "10.1101/2024.05.03.592390"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "doi": {
      "description": "bioRxiv or medRxiv DOI, e.g. 10.1101/2024.05.03.592390 (doi: and doi.org forms accepted)",
      "minLength": 1,
      "type": "string"
    },
    "length": {
      "default": 20000,
      "maximum": 40000,
      "minimum": 1000,
      "type": "integer"
    },
    "offset": {
      "default": 0,
      "description": "nextOffset from a previous call",
      "maximum": 9007199254740991,
      "minimum": 0,
      "type": "integer"
    },
    "sections": {
      "description": "Keep only sections whose heading contains one of these (case-insensitive), plus figures/tables whose label starts with one, e.g. [\"methods\", \"table 2\", \"fig. 3\"]",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "version": {
      "description": "Defaults to the latest version",
      "maximum": 9007199254740991,
      "minimum": 1,
      "type": "integer"
    }
  },
  "required": [
    "doi"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "doi": {
      "type": "string"
    },
    "nextOffset": {
      "type": "number"
    },
    "offset": {
      "type": "number"
    },
    "outline": {
      "description": "Every section of the preprint, in reading order",
      "items": {
        "additionalProperties": false,
        "properties": {
          "characters": {
            "type": "number"
          },
          "section": {
            "type": "string"
          }
        },
        "required": [
          "section",
          "characters"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "server": {
      "type": "string"
    },
    "text": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "totalLength": {
      "description": "Characters in the selected text",
      "type": "number"
    },
    "version": {
      "type": "number"
    }
  },
  "required": [
    "context",
    "doi",
    "server",
    "version",
    "outline",
    "totalLength",
    "offset",
    "text"
  ],
  "type": "object"
}
```

## Related tools

Other bioRxiv and medRxiv tools that this tool refers to, or that refer to it.

- [`findPreprintPassages`](https://kirha.com/providers/biorxiv/findPreprintPassages.md)
- [`getPreprint`](https://kirha.com/providers/biorxiv/getPreprint.md)

-----

[All bioRxiv and medRxiv tools](https://kirha.com/providers/biorxiv.md) · [< Back to tools list](https://kirha.com/tools.md)