Skip to content

File Context

You can attach files to your messages to give the agent additional context. NimbleBrain extracts text content from common file formats and includes it in the conversation.

FormatExtensionsExtraction
PDF.pdfText extraction from pages
Word.docxText and structure extraction
Excel.xlsxTabular data extraction
Images.png, .jpg, .jpeg, .gif, .webpPassed as image content to vision-capable models
Plain text.txt, .md, .csv, .json, .xmlRead as-is

When you attach a file to a message:

  1. The file is uploaded and stored in the workspace
  2. Content is extracted based on the file type
  3. The extracted text is included as context in the conversation
  4. The agent can reference the file content when responding

Files are scoped to the workspace and accessible via GET /v1/files/:fileId.

Drag and drop files into the chat input, or use the attachment button. The file appears as a chip below the input. Send your message and the agent sees the file content alongside your text.

Include file references in the ChatRequest:

{
"message": "Summarize this document",
"fileRefs": [
{
"id": "file_abc123",
"name": "report.pdf",
"mimeType": "application/pdf"
}
]
}

File context is controlled by the fileContext feature flag, which defaults to true. To disable:

nimblebrain.json
{
"features": {
"fileContext": false
}
}