Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Canvas Share File

Display a file from a StackAI Computer environment in the conversation canvas. Use it after Terminal creates a document that the user needs to read or edit.

Before you start

StackAI Computer and a conversation interface with canvas support are required.

Share a generated file

  1. Create the file with Terminal (StackAI Computer) and retain its Terminal Sandbox ID.

  2. Pass the file’s absolute File Path, the same Terminal Sandbox ID, and a short Description to Canvas Share File.

  3. Run the tool and open the file in the canvas. Check Success and read Error if sharing fails.

Result: The file appears in the canvas, with its file ID and version in the output.

Behavior and troubleshooting

The file must already exist under /home/user/ in that sandbox. A path on your own computer or a different sandbox will not work. Markdown files can be edited in the canvas; choose that format when the reader needs to revise the document.

Inputs

Field
Parameter
Description

Description (required)

description

Short intent label shown in UI.

File Path (required)

file_path

Absolute sandbox path of the file to share.

Terminal Sandbox ID (required)

terminal_sandbox_id

Sandbox ID to reuse an existing sandbox.

Outputs

Field
Parameter
Description

Success

success

Whether the file was shared successfully.

File ID

canvas_file_id

The canvas file ID.

Workspace ID

canvas_workspace_id

The canvas workspace ID.

Sandbox Path

path

The file path in the sandbox.

Version

version

The file version number.

Terminal Sandbox ID

terminal_sandbox_id

The sandbox ID used for this operation.

Error

error

Error message if the operation failed.

Tool Results, Errors, and Agent Continuation

Was this helpful?