Create symbolic link
create_symlinkCreate a symbolic link so a second path points to an existing file or folder; use it instead of copying when both paths should reference the same target.
Instructions
Create a symbolic link at link_path pointing to target. Use when: a second path should lead to a file or folder. Instead: create_hardlink for a second name of one file; copy_file for a copy. Behavior: only adds. A repeat fails with 'File exists'. Locally the target must also stay inside the root; it may dangle. Local disk, SFTP and NFS only. Time limit: 30 s. Returns: {ok: true}, plus target when the one stored differs.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_symlink"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | What the link points to: absolute, or relative to the link's folder, e.g. '../shared/data.csv'. SFTP and NFS store it as given. Required unless target_b64 is given. | |
| backend | No | Backend id from list_backends; omit for the default. | |
| link_path | No | The new link's own path; must not exist yet (absolute, or relative to the MCP root). Required unless link_path_b64 is given. | |
| target_b64 | No | target as base64 of its raw bytes, for non-UTF-8 names; replaces target. | |
| link_path_b64 | No | link_path as base64 of its raw bytes, for non-UTF-8 names; replaces link_path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| target | No | the target stored, when not the one given |