This skill enables agent-controlled printing on Windows systems.
Requires explicit user authorization before any print operation. Printing consumes physical resources and can be disruptive.
Always confirm:
bash
python scripts/list_printers.py
Or with PowerShell:
powershell
powershell -Command "Get-Printer | Select-Object Name, Type, Shared, PortName"
bash
python scripts/print_file.py --printer "Printer Name" --file "C:\path\to\file.txt"
bash
python scripts/print_text.py --printer "Printer Name" --text "Hello, World!"
bash
python scripts/set_default.py --printer "Printer Name"
ScriptPurposelist_printers.pyList all available printersprint_file.pyPrint a file to a specified printerprint_text.pyPrint raw text stringset_default.pySet default printerprinter_status.pyCheck printer status (online, paper, toner)
bash
pip install pywin32
The scripts automatically fall back to PowerShell if pywin32 is not available.
Example 1: List printers and pick one
bash
python scripts/list_printers.py
# Output shows available printers, pick one by name
Example 2: Print a document
bash
python scripts/print_file.py --printer "HP LaserJet Pro" --file "report.pdf" --copies 2
Example 3: Print a quick note
bash
python scripts/print_text.py --text "Meeting at 3pm" --printer "Office Printer"
list_printers.py to verify the exact printer namepip install pywin32powershell
powershell -Command "Restart-Service -Name Spooler"
See references/printer-api.md for detailed API documentation and Windows print subsystem details.