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
Create the file with Terminal (StackAI Computer) and retain its Terminal Sandbox ID.
Pass the file’s absolute File Path, the same Terminal Sandbox ID, and a short Description to Canvas Share File.
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
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
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.
Related guidance
Was this helpful?

