Tools
write_artifact
Create a downloadable file from text content. Use when the user explicitly requests “save as”, “export”, “create file”, or when generating code files. Parameters:
Response fields:
write_artifact_from_url
Create a downloadable file by fetching content from a URL. Use when you have a download URL from another tool (e.g., OneDrive, Google Drive, Slack) and want to save it as an artifact. The content is fetched server-side and never enters the agent’s context, making it efficient for large files. Parameters:
Response fields:
Note: URL fetches are subject to SSRF protection. Localhost and private IP URLs are blocked. Maximum download size is 100MB.
read_artifact
Read content from an artifact file. Use when a tool result shows_artifact.truncated: true to get the full data.
The recommended approach is smartGrepQuery — describe what you need in natural language and a fast LLM extracts it from the file. Think of it like grep on steroids: ask for specific fields, filters, summaries, counts, or formatted output. You can iterate by reading the first chunk, refining your query, and continuing with offset.
For binary files (XLSX, PDF), use _textArtifact.id instead of _artifact.id if a _textArtifact field is present.
Parameters:
When the response includes
hasMore: true, you have only seen partial data. Call read_artifact again with offset set to nextOffset (and the same smartGrepQuery) to get the rest. Do not treat partial results as final.list_artifacts
List all artifact files in the current chat session. Returns file names, IDs, sizes, MIME types, and creation dates. Parameters:
Response fields:

