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

# Camel.toolkits.markitdown toolkit

<a id="camel.toolkits.markitdown_toolkit" />

<a id="camel.toolkits.markitdown_toolkit.MarkItDownToolkit" />

## MarkItDownToolkit

```python theme={"system"}
class MarkItDownToolkit(BaseToolkit):
```

A class representing a toolkit for MarkItDown.

.. deprecated::
MarkItDownToolkit is deprecated. Use FileToolkit instead, which now
includes the same functionality through its read\_file method that
supports both single files and multiple files.

Example migration:

# Old way

from camel.toolkits import MarkItDownToolkit
toolkit = MarkItDownToolkit()
content = toolkit.read\_files(\['file1.pdf', 'file2.docx'])

# New way

from camel.toolkits import FileToolkit
toolkit = FileToolkit()
content = toolkit.read\_file(\['file1.pdf', 'file2.docx'])

<a id="camel.toolkits.markitdown_toolkit.MarkItDownToolkit.__init__" />

### **init**

```python theme={"system"}
def __init__(self, timeout: Optional[float] = None):
```

<a id="camel.toolkits.markitdown_toolkit.MarkItDownToolkit.read_files" />

### read\_files

```python theme={"system"}
def read_files(self, file_paths: List[str]):
```

Scrapes content from a list of files and converts it to Markdown.

This function takes a list of local file paths, attempts to convert
each file into Markdown format, and returns the converted content.
The conversion is performed in parallel for efficiency.

Supported file formats include:

* PDF (.pdf)
* Microsoft Office: Word (.doc, .docx), Excel (.xls, .xlsx),
  PowerPoint (.ppt, .pptx)
* EPUB (.epub)
* HTML (.html, .htm)
* Images (.jpg, .jpeg, .png) for OCR
* Audio (.mp3, .wav) for transcription
* Text-based formats (.csv, .json, .xml, .txt)
* ZIP archives (.zip)

**Parameters:**

* **file\_paths** (List\[str]): A list of local file paths to be converted.

**Returns:**

Dict\[str, str]: A dictionary where keys are the input file paths
and values are the corresponding content in Markdown format.
If conversion of a file fails, the value will contain an
error message.

<a id="camel.toolkits.markitdown_toolkit.MarkItDownToolkit.get_tools" />

### get\_tools

```python theme={"system"}
def get_tools(self):
```

**Returns:**

List\[FunctionTool]: A list of FunctionTool objects
representing the functions in the toolkit.
