Attach a knowledge file to the agent
add_agent_documentUpload a material the agent learns from (PDF, DOC, DOCX, TXT, XLS, XLSX, CSV, PPT, PPTX, KEY; ≤10 MB) from a public URL or base64. Used the next time the script is generated (generate_agent_script). Free.
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": {
"id": "<id>",
"filename": "<filename>"
},
"name": "add_agent_document"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Agent id (UUID) — from list_agents | |
| file_url | No | Public https URL of the file | |
| filename | Yes | File name with extension, e.g. "price-list.pdf" | |
| file_base64 | No | Base64 content (use instead of file_url) |