Chat With File
lyzr_chat_with_fileSend chat messages with attached files to AI agents, enabling context-aware responses based on the file content.
Instructions
Send a chat message to an agent with an attached file (base64-encoded content).
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": {
"agent_id": "<agent_id>",
"session_id": "<session_id>",
"message": "<message>"
},
"name": "lyzr_chat_with_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Base64-encoded file content to attach | |
| message | Yes | The chat message | |
| user_id | No | User id (default default_user) | |
| agent_id | Yes | The agent id | |
| features | No | JSON-encoded features override | |
| file_name | No | Filename for the attached file | |
| session_id | Yes | The session id | |
| filter_variables | No | JSON-encoded filter variables (default '{}') | |
| file_content_type | No | MIME type of the attached file | |
| system_prompt_variables | No | JSON-encoded system prompt variables (default '{}') |