embed_document
Prepare documents for Bitcoin blockchain storage by encoding content and metadata for OP_RETURN transactions, enabling on-chain data preservation up to 100KB.
Instructions
Prepare a document for on-chain storage.
Args:
content: Document content
content_type: MIME type of the content (default: 'text/plain')
encoding: Content encoding ('utf-8' or 'hex')
Returns:
Dictionary with prepared document data for embedding.
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": {
"content": "<content>"
},
"name": "embed_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| content | Yes | ||
| content_type | No | text/plain | |
| encoding | No | utf-8 |