Upload raw bytes (avatar, attachment, etc.) to IPFS (Pinata)
dexe_ipfs_upload_filePins a local file or base64 content to IPFS and returns its CID v1 and filename; use filePath for files up to 25 MB.
Instructions
Writes to a remote service. Pins a file to IPFS; PREFER filePath over base64. Returns CID v1 (base32) + filename. Images are magic-byte gated to rasters and renamed .jpeg unless normalizeImageExt: false.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "dexe_ipfs_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | No | Base64 file bytes — only when the content isn't a local file. | |
| fileName | No | Filename to pin it under, with extension. | file |
| filePath | No | Absolute path to a local file, max 25 MB — the server reads it. Preferred over base64. | |
| contentType | No | MIME type of the bytes. | application/octet-stream |
| normalizeImageExt | No | If contentType starts with image/, rename the extension to .jpeg. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cid | Yes | CID v1 base32 — use this as avatarCID. | |
| size | Yes | ||
| cidV0 | Yes | Original CID returned by Pinata (usually v0 Qm...). Kept for legacy callers. | |
| fileName | Yes | Filename actually pinned (possibly normalized to .jpeg). | |
| pinnedAt | Yes |