# Files

Lawmatics MCP server · 3 tools

## Tools

- [Download File](/integrations/lawmatics/files/download-file/) — Get a short-lived download LINK for a Lawmatics file (the link expires in a few minutes). Fetch the returned URL to retrieve the file's bytes — the bytes are streamed by the gateway, never returned inline. Use get-file for metadata only.

- [Get File](/integrations/lawmatics/files/get-file/) — Fetch a single file's metadata from Lawmatics by ID, including a `relationships` envelope of {id,type} pointers to the owning record (documentable) and its folder / parent folder. Returns metadata only, not the file contents — use download-file to retrieve a short-lived download link for the bytes.

- [List Files](/integrations/lawmatics/files/list-files/) — List file metadata from Lawmatics with optional pagination, sorting, and a single-field filter. Rows carry a `relationships` envelope of to-one {id,type} pointers (documentable owner, folder, parent folder). To list the files belonging to one record (matter, contact, company, invoice, …), filter on documentable_id with that record's id. You can also filter on created_at / updated_at by date. Returns metadata only — use download-file to retrieve a file's contents.
