File Publish
file_publishPublish a shared file: generate the public share token + slug and URL.
Idempotent: returns the existing token/slug if already published. The latest
rendered HTML is eagerly pushed to the Railway bucket. The public URL is
/s/{slug} (human-readable, from the title) with /s/{share_token} as a
fallback; both are returned in the response.
Agent seats (org tsk_ / agent_run) are refused — call
request_gated_approval(gate="publish") instead. Console humans
(ts_session) still publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File UUID to publish |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||