Expose tool prompt guidelines to extensions

closes #4879
This commit is contained in:
Mario Zechner
2026-05-28 11:03:25 +02:00
parent 17d39ccfd4
commit edd26444af
5 changed files with 12 additions and 6 deletions

View File

@@ -1213,7 +1213,7 @@ export interface ExtensionAPI {
/** Get the list of currently active tool names. */
getActiveTools(): string[];
/** Get all configured tools with parameter schema and source metadata. */
/** Get all configured tools with parameter schema, prompt guidelines, and source metadata. */
getAllTools(): ToolInfo[];
/** Set the active tools by name. */
@@ -1424,8 +1424,8 @@ export type GetSessionNameHandler = () => string | undefined;
export type GetActiveToolsHandler = () => string[];
/** Tool info with name, description, parameter schema, and source metadata */
export type ToolInfo = Pick<ToolDefinition, "name" | "description" | "parameters"> & {
/** Tool info with name, description, parameter schema, prompt guidelines, and source metadata. */
export type ToolInfo = Pick<ToolDefinition, "name" | "description" | "parameters" | "promptGuidelines"> & {
sourceInfo: SourceInfo;
};