w3_delegation_create
Create delegations for specific capabilities on the MCP-IPFS server. Specify audience DID, capabilities, and output path to generate a CAR file or base64 identity CID.
Instructions
Tool for w3_delegation_create operation. Requires ABSOLUTE paths for file arguments.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
audienceDid | Yes | The DID of the audience receiving the delegation (e.g., did:key:...). | |
base64 | No | Format output as base64 identity CID string instead of writing to a file. | |
capabilities | Yes | One or more capabilities to delegate (e.g., ['space/*', 'upload/*']). | |
name | No | Human-readable name for the audience. | |
output | No | ABSOLUTE path of file to write the exported delegation CAR file to. | |
type | No | Type of the audience. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"audienceDid": {
"description": "The DID of the audience receiving the delegation (e.g., did:key:...).",
"type": "string"
},
"base64": {
"default": false,
"description": "Format output as base64 identity CID string instead of writing to a file.",
"type": "boolean"
},
"capabilities": {
"description": "One or more capabilities to delegate (e.g., ['space/*', 'upload/*']).",
"items": {
"type": "string"
},
"minItems": 1,
"type": "array"
},
"name": {
"description": "Human-readable name for the audience.",
"type": "string"
},
"output": {
"description": "ABSOLUTE path of file to write the exported delegation CAR file to.",
"type": "string"
},
"type": {
"description": "Type of the audience.",
"enum": [
"device",
"app",
"service"
],
"type": "string"
}
},
"required": [
"audienceDid",
"capabilities"
],
"type": "object"
}