Add knowledge media
add_knowledge_mediaAttach a media file as a knowledge source on an agent (RAG). Media and agent must be in the same space. Get ids from list_agents / list_media.
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": {
"spaceId": "<spaceId>",
"agentId": "<agentId>",
"mediaId": "<mediaId>"
},
"name": "add_knowledge_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agentId | Yes | Agent ID from `list_agents` | |
| mediaId | Yes | Media ID from `list_media` | |
| spaceId | Yes | Space ID |