upload_asset
Registers an image from a local path or public URL, returns its asset://id, and optionally stores the ID in an Obsidian note for later reuse.
Instructions
Register a private asset from a local path or public URL; return its asset://id.
Local paths are first uploaded to a temporary public host for ingestion (the
asset persists on PiAPI ~days afterward, independent of that URL). If
influencer_page (path to an Obsidian .md) is given, the asset id is recorded
there under a managed section for reuse.
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": {
"image": "<image>"
},
"name": "upload_asset"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| image | Yes | ||
| asset_type | No | Image | |
| wait_active | No | ||
| influencer_page | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||