Download an ECFS document
ecfs_download_documentDownload a specific document from an FCC ECFS filing by submission ID and document number, save it to disk, and return the saved file path.
Instructions
Download one document (usually a PDF) from an ECFS filing and save it to disk, returning the saved file path. Identify it by the filing's submission ID and the document's position in the filing — the {n} in its https://www.fcc.gov/ecfs/document/{id_submission}/{n} location/src URL. Fetches the file through a headless Chrome browser (Google Chrome must be installed), so it takes a few seconds per document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output_dir | No | Directory to save the file in. Omit to use the server's configured download directory (ECFS_DOWNLOAD_DIR); only set this when the user asks for a specific place. | |
| id_submission | Yes | The ECFS submission ID of the filing the document belongs to. | |
| document_number | No | 1-based position of the document within the filing — the {n} in its https://www.fcc.gov/ecfs/document/{id_submission}/{n} location URL. Defaults to 1. |