CoAgent8 - Source API
    Preparing search index...

    Function handleSession

    • Lists, pages history or closes sessions owned by the resolved workspace.

      Parameters

      • args: ToolArguments

        Validated session-tool arguments.

      • workspace: string = ...

        Workspace resolved by the server; direct callers default from the argument/cwd.

      Returns Promise<
          | { content: { text: string; type: string }[] }
          | {
              content: { text: string; type: "text" }[];
              structuredContent: { schemaVersion: number; sessions: SessionRecord[] };
          },
      >