Skip to content

workspace.pane.content.set.v1

Set pane content

Replaces content in the pane identified by invocation scope.

At a glance

Callable byagent, cli, plugin
Effectwrite — Changes state.
Confirmationnever — Runs without asking.
Idempotencynone
Leaves the machineno
Provided bydev.tenon.core
Contract classsealed

Input

PropertyRequiredTypeConstraints
contentyes{kind} | {kind} | {kind} | {kind} | {kind, provider, sessionID, title?, transcriptPath} | {kind, path} | {kind, pluginID, viewID} | {kind, originalPath?, path, repositoryPath, source, staged, title?, untracked} | {fileName, kind, newText, oldText, source, title?}

Output

Takes no properties — send {}.

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.content-unavailable
  • dev.tenon.core.pane-not-found

Call it

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

js
const result = await tenon.intents.send("workspace.pane.content.set.v1", {})
if (!result.ok) throw new Error(result.error.code)

From a shell:

sh
tenon-cli intent send workspace.pane.content.set.v1 --input '{}'

Ask your own build for this same contract with tenon-cli intent describe workspace.pane.content.set.v1.