readlink
Resolve symbolic links to their targets or canonicalize paths. Returns JSON with the resolved path.
Instructions
Read the target of symbolic links, or canonicalize paths with --canonicalize. Read-only, no side effects. Use --canonicalize to resolve every component of the path. Returns JSON with the resolved target or canonical path. Use to inspect symlink targets or normalize paths. Not for full path resolution with existence checks — use 'realpath' which always resolves to an absolute, existing path. See also 'realpath'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| raw | No | Write one target/path per line without a JSON envelope. | |
| paths | Yes | Symlinks to inspect, or paths to canonicalize. | |
| strict | No | With --canonicalize, fail if a path does not exist. | |
| canonicalize | No | Return canonical resolved paths. |