Skip to content

filesystem.path.exists.v1

Check path

Checks whether a filesystem path exists.

At a glance

Callable byagent, cli, plugin
Effectread — Reads state and changes nothing.
Confirmationnever — Runs without asking.
Idempotencynone
Leaves the machineno
Provided bydev.tenon.core
Contract classsealed

Input

PropertyRequiredTypeConstraints
pathyesstringlength 1–16384

Output

PropertyRequiredTypeConstraints
existsyesboolean

Errors it can return

These are this contract’s own failures, on top of the lifecycle errors every intent can settle with. See Errors.

  • dev.tenon.core.filesystem-failed

Call it

From a plugin — declare it in intents.uses first:

js
const result = await tenon.intents.send("filesystem.path.exists.v1", {})
if (!result.ok) throw new Error(result.error.code)

From a shell:

sh
tenon-cli intent send filesystem.path.exists.v1 --input '{}'

Ask your own build for this same contract with tenon-cli intent describe filesystem.path.exists.v1.