fs_share
A link for the user to one file of a computer, opened on their CMDOP page; audio and video play there. Lasts 1h, 1d (default) or 7d.
Arguments
| Name | Type | Required | Meaning |
|---|---|---|---|
expires | "1h" | "1d" | "7d" | no | How long the link works: 1h, 1d (default) or 7d. |
machine | string | yes | The computer: its id or unique name, as machines_list shows it. |
path | string | yes | The file’s absolute path on that computer. Folders are refused. |
Result
| Name | Type | Required | Meaning |
|---|---|---|---|
expires_at | integer | yes | When the link stops working, unix seconds. |
name | string | yes | The file’s name. |
size | integer | yes | Bytes. |
type | string | yes | The media type the link serves. |
url | string | yes | The link. It opens the file in the user’s browser, signed in to their CMDOP page; give it to them as it is. |
Examples
MCP
{
"name": "fs_share",
"arguments": {
"machine": "<machine>",
"path": "<path>"
}
}Limits
The token is the only check: no risk class applies, and the call is not counted against the plan. A call with machine set, or with sealed instead of args, returns bad_args. A refused call returns one of the error codes.