Skip to main content

Semantic Kernel plugins for AI agents: File I/O, Excel, Word, PowerPoint, PDF, CSV, Web scraping, and Shell commands

Project description

AI AgentTools

Comprehensive Semantic Kernel plugins for AI agents to perform PC tasks: File I/O, Office documents (Excel, Word, PowerPoint), PDF operations, CSV/data manipulation, web scraping, and shell commands.

Installation

pip install ai-agenttools

Optional Dependencies

Install specific tool categories as needed:

# All tools
pip install ai-agenttools[all]

# Office suite (Excel, Word, PowerPoint)
pip install ai-agenttools[office]

# Individual tools
pip install ai-agenttools[excel]      # Excel operations
pip install ai-agenttools[word]       # Word documents
pip install ai-agenttools[powerpoint] # PowerPoint presentations
pip install ai-agenttools[pdf]        # PDF operations
pip install ai-agenttools[csv]        # CSV/data manipulation
pip install ai-agenttools[web]        # Web scraping

Usage

from agenttools import (
    FileIOTools,
    ExcelTools,
    WordTools,
    PowerPointTools,
    PDFTools,
    CSVTools,
    WebTools,
    ShellTool
)
from semantic_kernel import Kernel

kernel = Kernel()

# Add plugins as needed
kernel.add_plugin(FileIOTools(), plugin_name="file_io_tools")
kernel.add_plugin(ExcelTools(), plugin_name="excel_tools")
kernel.add_plugin(WordTools(), plugin_name="word_tools")
kernel.add_plugin(PowerPointTools(), plugin_name="powerpoint_tools")
kernel.add_plugin(PDFTools(), plugin_name="pdf_tools")
kernel.add_plugin(CSVTools(), plugin_name="csv_tools")
kernel.add_plugin(WebTools(), plugin_name="web_tools")
kernel.add_plugin(ShellTool(), plugin_name="shell_tool")

Features

FileIOTools (4 functions)

  • ensure_dir - Create directories
  • write_file - Write text files
  • append_file - Append to files
  • read_file - Read text files

ExcelTools (15+ functions)

  • create_workbook - Create Excel files
  • read_sheet - Read Excel data
  • write_cell - Write to cells
  • write_rows - Write multiple rows
  • add_sheet, delete_sheet - Manage worksheets
  • get_cell_value, set_cell_value - Cell operations
  • And more...

WordTools (9 functions)

  • create_word_document - Create Word documents
  • add_heading - Add headings with levels
  • add_paragraph - Add text paragraphs
  • add_table - Create tables
  • set_table_cell - Fill table cells
  • add_bullet_list - Add bulleted lists
  • add_page_break - Insert page breaks
  • read_word_document - Extract text

PowerPointTools (8 functions)

  • create_presentation - Create PowerPoint files
  • add_title_slide - Add title slides
  • add_content_slide - Add slides with bullet points
  • add_blank_slide - Add blank slides
  • add_text_box - Add text boxes to slides
  • get_slide_count - Count slides
  • read_slide_text - Extract slide content

PDFTools (8 functions)

  • create_pdf - Create PDF documents
  • extract_pdf_text - Extract text from PDFs
  • merge_pdfs - Merge multiple PDFs
  • split_pdf - Split PDF into pages
  • extract_pdf_page - Extract specific pages
  • get_pdf_info - Get PDF metadata
  • rotate_pdf_pages - Rotate PDF pages

CSVTools (9 functions)

  • read_csv - Read CSV files
  • get_csv_info - Get CSV metadata
  • filter_csv - Filter rows by column value
  • sort_csv - Sort by column
  • get_column_stats - Statistical analysis
  • merge_csv_files - Combine multiple CSVs
  • select_csv_columns - Select specific columns
  • convert_csv_to_json - CSV to JSON conversion

WebTools (9 functions)

  • fetch_webpage - Download HTML content
  • extract_text_from_url - Extract text from webpages
  • extract_links - Get all hyperlinks
  • extract_images - Get all image URLs
  • download_file - Download files from URLs
  • make_get_request - HTTP GET requests
  • make_post_request - HTTP POST requests
  • find_elements_by_tag - Find HTML elements

ShellTool (1 function)

  • run_shell - Execute shell commands with safety checks
    • Blocks dangerous commands (rm -rf, etc.)

License

CC BY-NC 4.0 - Free for non-commercial use. For commercial licensing, please contact the author.

This software is provided for personal, educational, and research use only. Commercial use requires a separate license.

Links

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_agenttools-0.2.1.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_agenttools-0.2.1-py3-none-any.whl (17.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_agenttools-0.2.1.tar.gz.

File metadata

  • Download URL: ai_agenttools-0.2.1.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ai_agenttools-0.2.1.tar.gz
Algorithm Hash digest
SHA256 e57be615233f5105566c5bf43bcb3586d378d4f8d6243dc6d026a03c7d984c5b
MD5 89bfeb415fb531fb9696ceb5a1372d7b
BLAKE2b-256 ae61b0b5612b32bdc33aa9286fa135bffcc4afdd7d401be8b8c7f4421b37c330

See more details on using hashes here.

File details

Details for the file ai_agenttools-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: ai_agenttools-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for ai_agenttools-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed0f995a2444a134595c186d6a3233dcc19d21d7f40d5a923c0c05ead909a6c5
MD5 9bd6f46d9144ee2373309e03c4d93c90
BLAKE2b-256 1561121c580dac15c5abe5004373d326a97db5516ccaa5568a3ddb5c85604649

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page