file_publish
Publish 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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_id": "<file_id>"
},
"name": "file_publish"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_id | Yes | File UUID to publish |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||