v2.5.12
March 30, 2026
Convert any document format directly from an agent with the new DoclingTools toolkit
DoclingTools gives agents the ability to convert documents on demand using the Docling library — accepting PDFs, DOCX, PPTX, XLSX, HTML, images, audio, and video files as input and exporting to Markdown, plain text, HTML, JSON, YAML, DocTags, and VTT. Each output format is a separately togglable tool, so agents only expose the conversions they actually need. Advanced PDF handling is also available, with configurable OCR engines, language settings, table structure recognition, picture classification, and per-document timeouts for scanned or complex documents.
Example: The following agent converts a PDF to Markdown
from agno.agent import Agent
from agno.tools.docling import DoclingTools
agent = Agent(
tools=[DoclingTools(all=True)],
description="You are an agent that converts documents from all Docling parsers and exports to all supported output formats.",
)
agent.print_response(
"Convert to Markdown: cookbook/07_knowledge/testing_resources/cv_1.pdf",
markdown=True,
)
See the DoclingTools docs for more.
