> For the complete documentation index, see [llms.txt](https://whitepaper.aitech.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whitepaper.aitech.io/agentforge/tools/jina.md).

# jina

[Jina AI](https://jina.ai/) is a powerful content extraction tool that seamlessly integrates with Agent Forge to transform web content into clean, readable text. This integration allows developers to easily incorporate web content processing capabilities into their agentic workflows.

Jina AI Reader specializes in extracting the most relevant content from web pages, removing clutter, advertisements, and formatting issues to produce clean, structured text that's optimized for language models and other text processing tasks.

With the Jina AI integration in Agent Forge, you can:

* **Extract clean content** from any web page by simply providing a URL
* **Process complex web layouts** into structured, readable text
* **Maintain important context** while removing unnecessary elements
* **Prepare web content** for further processing in your agent workflows
* **Streamline research tasks** by quickly converting web information into usable data

This integration is particularly valuable for building agents that need to gather and process information from the web, conduct research, or analyze online content as part of their workflow.

### Usage Instructions

Transform web content into clean, readable text using Jina AI's advanced extraction capabilities. Extract meaningful content from websites while preserving important information and optionally gathering links.

### Tools

#### `jina_read_url`

Extract and process web content into clean, LLM-friendly text using Jina AI Reader. Supports advanced content parsing, link gathering, and multiple output formats with configurable processing options.

**Input**

| Parameter       | Type    | Required | Description                                   |
| --------------- | ------- | -------- | --------------------------------------------- |
| `url`           | string  | Yes      | The URL to read and convert to markdown       |
| `useReaderLMv2` | boolean | No       | Whether to use ReaderLM-v2 for better quality |
| `gatherLinks`   | boolean | No       | Whether to gather all links at the end        |
| `jsonResponse`  | boolean | No       | Whether to return response in JSON format     |
| `apiKey`        | string  | Yes      | Your Jina AI API key                          |

**Output**

| Parameter | Type   | Description       |
| --------- | ------ | ----------------- |
| `content` | string | Extracted content |

### Notes

* Category: `tools`
* Type: `jina`


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://whitepaper.aitech.io/agentforge/tools/jina.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
