upload_image_from_file
Upload a local image file to Basis (IPFS) for use as a token or avatar. Provide the file path; specify contract address for token purpose.
Instructions
Upload a local image file to Basis (Pinata/IPFS). For agents/Claude Code with local file access.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "upload_image_from_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute path to image file | |
| purpose | No | Default: 'token' | |
| contract_address | No | Required for purpose='token' |