Documentation Index
Fetch the complete documentation index at: https://docs.xagent.run/llms.txt
Use this file to discover all available pages before exploring further.
File Upload
Upload files to your task workspace so agents can access and process them during execution.Upload Methods
From Task Page
When creating a task on the Task page:- Click the attachment icon - File upload button
- Select files - Choose files from your device
- Add to task - Files are attached to your task request
Drag and Drop
Simply drag and drop files onto the Task page:- Drag files from your file manager
- Drop onto the task input area
- Files are automatically attached
File Size Limits
Default Limits
- Maximum file size - Typically 10-100MB per file
- Total upload size - Varies by plan
- Recommendations - Compress large files before uploading
Handling Large Files
If your file exceeds the limit:- Compress - Use ZIP compression
- Split - Divide large files into smaller chunks
- Optimize - Reduce image resolution or remove unnecessary data
Upload limits depend on your Xagent configuration and plan. Contact your administrator for specific limits.
Upload Process
Step 1: Select Files
Choose files from your device:- Click file upload button or drag & drop
- Select one or multiple files
- Files appear in upload queue
Step 2: Upload Progress
Files are uploaded to your task workspace:- Progress indicator - Shows upload status
- Success confirmation - Files ready for use
- Error handling - Failed uploads show error message
Step 3: Submit Task
With files attached:- Describe your task - Tell Xagent what to do with the files
- Submit task - Files are stored in task workspace
- Execution begins - Agent can now access files
During Task Execution
File Access
Once uploaded and task is submitted:- Files are stored in task workspace
- Agent can access files automatically
- Agent decides when and how to use files
- Files remain available throughout task execution
Agent File Operations
Agent can:- Read - Access file contents for analysis
- Parse - Extract text and data from documents
- Process - Analyze and transform content
- Create - Generate new files as output
File References
You can reference uploaded files in your request:Supported File Types
Documents
- PDF -
.pdf - Word -
.doc,.docx - Text -
.txt - Markdown -
.md - HTML -
.html,.htm
Data Files
- CSV -
.csv - Excel -
.xlsx,.xls - JSON -
.json
Presentations
- PowerPoint -
.pptx
Images
- PNG -
.png - JPG/JPEG -
.jpg,.jpeg - GIF -
.gif
Code
- Python -
.py - JavaScript -
.js - TypeScript -
.ts - Java -
.java - And more - Most programming languages
Archives
- ZIP -
.zip
Best Practices
File Preparation
Before uploading:- Use clear, descriptive filenames
- Organize related content in single files when possible
- Remove sensitive or confidential information
- Compress large files
- Check file size limits
sales_q4_2023.csv- Descriptive namecontract_vendor_acme.pdf- Clear identificationcode_review_main.py- Purpose in name
data.csv- Not descriptivefile1.pdf- No contextdocument.txt- Generic name
Multiple Files
When uploading multiple files:- Use consistent naming conventions
- Group related files
- Provide context in task description
- Consider upload order if it matters
Task Descriptions
Help the agent understand your files: Instead of:Troubleshooting
Upload Failed
Check:- File size within limits
- File format is supported
- Network connection is stable
- Sufficient storage space
- Compress large files
- Try different format
- Check internet connection
- Contact administrator if issue persists
File Not Found During Task
Possible reasons:- File upload didn’t complete
- File was deleted from workspace
- Wrong file path used by agent
- Verify upload completed successfully
- Check file appears in attachments
- Resubmit task with files
Can’t Upload File Type
Workarounds:- Convert to supported format
- Compress multiple files into ZIP
- Extract text and upload as text file
- Contact administrator about format support
Next Steps
- Files Overview - Learn about files in Xagent
- File Management - Managing files during tasks
- Tools - File tools available to agents