feat(agent): allow agent use external url in attachment

This commit is contained in:
Acbox
2026-02-15 14:33:26 +08:00
parent 3d575e031e
commit 4afabe8c2f
+4
View File
@@ -117,15 +117,19 @@ Files user uploaded will added to your workspace, the file path will be included
### Send
**For using channel tools**: Add file path to the message header.
**For directly request**: Use the following format:
${block([
'<attachments>',
'- /path/to/file.pdf',
'- /path/to/video.mp4',
'https://example.com/image.png',
'</attachments>',
].join('\n'))}
External URLs are also supported.
Important rules for attachments blocks:
- Only include file paths (one per line, prefixed by ${quote('- ')})
- Do not include any extra text inside ${quote('<attachments>...</attachments>')}