Tool Details: asset_content

Basic Information

Tool Name:asset_content
Asset Name:Get Asset Content
Description:Retrieve the binary content payload of an asset by any resolvable address. Returned as hex-encoded Blob. Returns {truncated: true, size} if it exceeds maxSize (default 1MB). Use asset_get for metadata. Only assets stored with a content payload have content.
Adapter:asset
Asset Hash:0x8804132c7102216b1662e005461a3ed2dc3b2263088488f94d2303a439181d2c
Input
PropertyTypeDescription
maxSizeintegerMaximum content size in bytes (default 1000000). If exceeded, returns truncated: true with the size.
id*stringAsset reference. Any resolvable address: hex hash, /a/<hash>, /o/<name>, /v/<path>, DID URL, or workspace path (w/, g/, j/, etc.).
Output
PropertyTypeDescription
valuestringContent as hex-encoded Blob (0x...). Present when exists is true and not truncated.
sizeintegerContent size in bytes (present when truncated)
existsbooleanTrue if a CAS record was found for the resolved asset
truncatedbooleanTrue if content exceeds maxSize
idstringAsset reference (echoed)

MCP Tool Usage Examples

This tool can be called via the MCP (Model Context Protocol) endpoint. Here are examples of how to use it:

JSON-RPC Call Example:

POST to https://venue-3.covia.ai/mcp

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "asset_content",
    "arguments": {
      "input": "your input here"
    }
  }
}
cURL Example:
curl -X POST https://venue-3.covia.ai/mcp \\
  -H "Content-Type: application/json" \\
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
      "name": "asset_content",
      "arguments": {
        "input": "your input here"
      }
    }
  }'
Python Example:
import requests
import json

url = "https://venue-3.covia.ai/mcp"
payload = {
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/call",
    "params": {
        "name": "asset_content",
        "arguments": {
            "input": "your input here"
        }
    }
}

response = requests.post(url, json=payload)
result = response.json()
print(result)
JavaScript/Node.js Example:
const fetch = require('node-fetch');

const url = 'https://venue-3.covia.ai/mcp';
const payload = {
    jsonrpc: '2.0',
    id: 1,
    method: 'tools/call',
    params: {
        name: 'asset_content',
        arguments: {
            input: 'your input here'
        }
    }
};

fetch(url, {
    method: 'POST',
    headers: {
        'Content-Type': 'application/json'
    },
    body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data));

Asset Metadata

{
  "name": "Get Asset Content",
  "description": "Retrieve the binary content payload of an asset by any resolvable address. Returned as hex-encoded Blob. Returns {truncated: true, size} if it exceeds maxSize (default 1MB). Use asset_get for metadata. Only assets stored with a content payload have content.",
  "dateCreated": "2026-03-31T00:00:00Z",
  "operation": {
    "adapter": "asset:content",
    "toolName": "asset_content",
    "input": {
      "type": "object",
      "properties": {
        "id": { "type": "string", "description": "Asset reference. Any resolvable address: hex hash, /a/<hash>, /o/<name>, /v/<path>, DID URL, or workspace path (w/, g/, j/, etc.)." },
        "maxSize": { "type": "integer", "description": "Maximum content size in bytes (default 1000000). If exceeded, returns truncated: true with the size." }
      },
      "required": ["id"]
    },
    "output": {
      "type": "object",
      "properties": {
        "id": { "type": "string", "description": "Asset reference (echoed)" },
        "exists": { "type": "boolean", "description": "True if a CAS record was found for the resolved asset" },
        "value": { "type": "string", "description": "Content as hex-encoded Blob (0x...). Present when exists is true and not truncated." },
        "truncated": { "type": "boolean", "description": "True if content exceeds maxSize" },
        "size": { "type": "integer", "description": "Content size in bytes (present when truncated)" }
      }
    }
  }
}

Navigation

Back to adapter details

Back to all adapters

Back to index