File Create
file_createCreate a new versioned shared file in the caller's org.
Shared files default to private. Call file_publish to generate the
public share URL (/s/{share_token}). Each file_update creates a
new immutable version row. Pass work_id to attach it to a task
and/or project_id to attach it to a project (same shared_files
row; project attachments are kind=artifact only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Override agent identity | |
| title | Yes | File title | |
| content | Yes | File body: markdown, raw HTML, or a teamshared.diagram/v1 JSON/YAML document when content_format='diagram' | |
| work_id | No | Attach the new file to this work item UUID | |
| project_id | No | Attach the new file to this project UUID (kind=artifact) | |
| content_format | No | 'markdown' (allowlist sanitizer), 'html' (sanitized raw HTML), or 'diagram' (teamshared.diagram/v1 JSON/YAML; Mermaid on /s/...) | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||