This gist contains both the supported current-Pi approach and a custom raw-process approach.
| Example | Status | Files |
|---|---|---|
| Supported dialog bridge | Works with current Pi | client.mjs, server.ts |
| Custom raw-process bridge | Works with Pi versions before 0.62.0 | custom-client.mjs, custom-server.ts |
Both examples keep the file on the client device until the client chooses to send it. The Pi extension receives a response and returns a normal tool result.