Tool: convert_file_to_markdown
Converts various file formats (PDF, DOCX, PPTX, XLSX, images, etc.) to Markdown using the MarkItDown library.Parameters
The name of the artifact file to convert. The file must already exist as an artifact in the session.
Optional name for the output Markdown artifact. If not specified, defaults to
{original_filename}.md.Supported Formats
- Documents: PDF, DOCX, PPTX, XLSX
- Images: PNG, JPG, JPEG, GIF (requires vision model for OCR)
- Code: Python, JavaScript, HTML, and other text formats
- Archives: ZIP files (converts each contained file)
Usage
Response Format
The conversion quality depends on the complexity of the source document. PDFs with complex layouts may not convert perfectly to Markdown.
Tool: mermaid_diagram_generator
Generates diagrams from Mermaid syntax and saves them as PNG images.Parameters
The Mermaid diagram syntax. See Mermaid documentation for syntax reference.
The filename for the generated PNG image artifact.
Background color for the diagram. Can be color names (e.g., “white”, “transparent”) or hex codes (e.g., “#FFFFFF”).
Mermaid theme to use. Options:
default, dark, forest, neutral, base.Usage
Supported Diagram Types
- Flowcharts
- Sequence diagrams
- Class diagrams
- State diagrams
- Entity relationship diagrams
- Gantt charts
- Pie charts
- Git graphs
- User journey diagrams
The tool uses Mermaid CLI with Playwright for rendering. The generated PNG is saved as an artifact and can be referenced in responses or downloaded.
Tool: web_request
Makes HTTP requests to external URLs and returns the response content.Parameters
The URL to request. Must use HTTP or HTTPS protocol.
HTTP method to use. Options:
GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS.Optional HTTP headers to include in the request. Provide as a dictionary of header name/value pairs.
Optional request body for POST/PUT/PATCH requests. Can be JSON string or other format.
Request timeout in seconds.
Usage
Response Format
Security Considerations
File conversion
When converting files, be aware that malicious files could potentially exploit parsing vulnerabilities. Only convert files from trusted sources.
Web requests
Web requests can expose your agent to:
- Malicious content
- Data exfiltration
- SSRF attacks
Diagram generation
Mermaid diagrams are generally safe, but extremely large or complex diagrams may consume excessive resources.
Resource limits
All tools respect configured timeout and size limits to prevent resource exhaustion.
See Also
- Artifact Management - Managing tool outputs
- Image Tools - Image generation and analysis
- Research Tools - Web search capabilities
- Tool Configuration - Configure tool behavior