agents.open_file
For a thread’s agent: opens a file (path relative to the workspace, absolute or a partial name; line) as a file tab of the user’s window following its thread (PRT-452, DMN-1023).
Params: AgentOpenFileParams
Section titled “Params: AgentOpenFileParams”/** `agents.open_file` params (PRT-452, DMN-1023): a file the user's window following the calling thread opens. */export type AgentOpenFileParams = { /** Line to scroll to, from 1. */ line?: number | null; /** * Relative to the workspace folder, absolute, or a bare or partial name the * window looks up. */ path: string;};Result: AgentOpenedFile
Section titled “Result: AgentOpenedFile”/** `agents.open_file` result: the window asked to open the file. */export type AgentOpenedFile = { connection: number;};