convert_document
Convert PDF, Word, Excel, and PowerPoint documents to Markdown with automatic USDC payment via x402. Returns markdown text or zip download URL for documents with images.
Instructions
문서를 Markdown으로 변환한다. x402로 USDC를 자동 결제한다.
가격이 max_usdc를 넘으면 결제하지 않고 거부한다(비용 폭주 방지). 이미지가 없는 문서는 markdown 텍스트를, 이미지가 포함된 문서는 zip 다운로드 URL을 반환한다.
Args: file_path: 변환할 로컬 파일 경로. max_usdc: 허용 최대 결제액(USDC). 견적이 이보다 크면 결제하지 않는다. poll_seconds: 변환 완료를 기다리는 최대 초. Returns: paid, txHash, priceUsdc, status, 그리고 markdown(이미지 없을 때) 또는 downloadUrl+format(이미지 있을 때).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_usdc | No | ||
| file_path | Yes | ||
| poll_seconds | No |