factor_upload_ipfs
Upload a profile image or vault logo to IPFS via the Factor Stats API, returning a hash for use in profile and vault metadata fields.
Instructions
Upload a file to IPFS via the Factor Stats API. Use this to upload profile images and vault logos. Provide either a filePath (local file) or base64-encoded content. Returns an IPFS hash that can be used in factor_save_profile (image field) or factor_save_vault_metadata (logoCID field).
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": "factor_upload_ipfs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| base64 | No | Base64-encoded file content. Use this when you have the file content directly instead of a file path. | |
| fileName | No | File name (required when using base64, optional for filePath — defaults to the file basename) | |
| filePath | No | Path to the local file to upload (e.g., "/path/to/image.png") | |
| mimeType | No | MIME type of the file (e.g., "image/png", "image/jpeg"). Auto-detected from extension if not provided. | |
| password | No | Wallet password if the wallet is encrypted |