share_files
Preview workspace file metadata to confirm sharing, then generate a secure download link. Optionally read file contents directly.
Instructions
Reads or shares workspace files. Three actions are available: 'read' — return file contents inline (no link generated). 'preview' — REQUIRED first step before sharing. Returns file metadata (name, size, type, modified) and a short-lived confirmationToken. Present ALL metadata to the user and ask for explicit approval before proceeding. Never skip this step. 'download' — generate a public download link. Requires the confirmationToken returned by a prior 'preview' call for the same file. A link CANNOT be generated without a valid token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filePath | Yes | The name of the file inside the workspace (e.g., invoice.pdf) | |
| action | Yes | read | preview | download. Always call 'preview' before 'download'. | |
| confirmationToken | No | Required for action=download. The token returned by the preceding 'preview' call for this exact file. |