PDF Reader Tool
Usage
Portia offers both open source tools as well as a cloud-hosted library of tools to save you development time. You can dig into the specs of those tools in our open source repo (SDK repo ↗).
You can import our open source tools into your project using from portia.open_source_tools.registry import open_source_tool_registry
and load them into an InMemoryToolRegistry
object. You can also combine their use with cloud or custom tools as explained in the docs (Add custom tools ↗).
Tool details
Tool ID: pdf_reader_tool
Tool description: Read a PDF file and extract its text content using Mistral OCR
Usage notes:
You must have a MistralAI API key set in the environment variable MISTRAL_API_KEY
to use this tool.
Args schema:
{
"description": "Input for PDFReaderTool.",
"properties": {
"file_path": {
"description": "The path to the PDF file to be read.",
"title": "File Path",
"type": "string"
}
},
"required": [
"file_path"
],
"title": "PDFReaderToolSchema",
"type": "object"
}
Output schema:
('str', 'The extracted text content from the PDF file.')