attach_file
Upload a file from your project as a chat attachment so the operator can download it. Returns a file ID to reference in your reply.
Instructions
Upload a file from your project as a chat attachment. The path must be inside your current working directory (relative paths are resolved against cwd; symlinks pointing outside are refused). Use this when the operator should be able to download a file you produced. Returns a fileId; mention it in your reply text so the operator can find the chip in the dashboard. Optional targetSessionId lets you upload directly into a different session (e.g. when delivering a file to a peer the channel-token owner has prompter+ on). Without it, the upload goes to the channel's own session — the common case.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Path to the file. Relative is resolved against cwd; absolute must still resolve to a path under cwd. | |
| targetSessionId | No | Optional UUID of a different session to upload to. The channel-token's owning user must have prompter+ role on it (owner or shared-as-prompter/approver). Most callers should omit this and let the upload go to the channel's own session. |