Skip to content

Commit 4a52f03

Browse files
committed
chore(copilot): sync load_slide_layout into the tool catalog
The file agent's slide-layout loader (Go-executed, never run by Sim) was added to the mothership catalog but never synced here, so its transcript row fell back to a humanized title. Sync the catalog entry, hide the row like load_skill, and keep a fallback title for history.
1 parent 81f4086 commit 4a52f03

4 files changed

Lines changed: 40 additions & 1 deletion

File tree

apps/sim/lib/copilot/generated/tool-catalog-v1.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ export interface ToolCatalogEntry {
7171
| 'load_deployment'
7272
| 'load_integration_tool'
7373
| 'load_skill'
74+
| 'load_slide_layout'
7475
| 'manage_credential'
7576
| 'manage_custom_tool'
7677
| 'manage_knowledge_base'
@@ -199,6 +200,7 @@ export interface ToolCatalogEntry {
199200
| 'load_deployment'
200201
| 'load_integration_tool'
201202
| 'load_skill'
203+
| 'load_slide_layout'
202204
| 'manage_credential'
203205
| 'manage_custom_tool'
204206
| 'manage_knowledge_base'
@@ -3143,6 +3145,24 @@ export const LoadSkill: ToolCatalogEntry = {
31433145
},
31443146
}
31453147

3148+
export const LoadSlideLayout: ToolCatalogEntry = {
3149+
id: 'load_slide_layout',
3150+
name: 'load_slide_layout',
3151+
route: 'go',
3152+
mode: 'sync',
3153+
parameters: {
3154+
type: 'object',
3155+
properties: {
3156+
name: {
3157+
type: 'string',
3158+
description:
3159+
"Layout name exactly as it appears in the Layout Library index (e.g. 'metric-cards').",
3160+
},
3161+
},
3162+
required: ['name'],
3163+
},
3164+
}
3165+
31463166
export const ManageCredential: ToolCatalogEntry = {
31473167
id: 'manage_credential',
31483168
name: 'manage_credential',
@@ -7041,6 +7061,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
70417061
[LoadDeployment.id]: LoadDeployment,
70427062
[LoadIntegrationTool.id]: LoadIntegrationTool,
70437063
[LoadSkill.id]: LoadSkill,
7064+
[LoadSlideLayout.id]: LoadSlideLayout,
70447065
[ManageCredential.id]: ManageCredential,
70457066
[ManageCustomTool.id]: ManageCustomTool,
70467067
[ManageKnowledgeBase.id]: ManageKnowledgeBase,

apps/sim/lib/copilot/generated/tool-schemas-v1.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3028,6 +3028,20 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
30283028
},
30293029
resultSchema: undefined,
30303030
},
3031+
load_slide_layout: {
3032+
parameters: {
3033+
type: 'object',
3034+
properties: {
3035+
name: {
3036+
type: 'string',
3037+
description:
3038+
"Layout name exactly as it appears in the Layout Library index (e.g. 'metric-cards').",
3039+
},
3040+
},
3041+
required: ['name'],
3042+
},
3043+
resultSchema: undefined,
3044+
},
30313045
manage_credential: {
30323046
parameters: {
30333047
type: 'object',

apps/sim/lib/copilot/tools/client/hidden-tools.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@
55
// search_integration_tools is gateway plumbing: the discovery step is not a
66
// user-meaningful action, only the resolved call_integration_tool row is.
77
// load_skill is the same shape — the agent pulling in a reference guide before
8-
// doing the work is a step toward the action, not the action.
8+
// doing the work is a step toward the action, not the action. load_slide_layout
9+
// is that shape again: the file agent reading a layout from the slide library
10+
// ahead of writing the deck.
911
const HIDDEN_TOOL_NAMES = new Set([
1012
'load_agent_skill',
1113
'load_custom_tool',
1214
'load_mcp_tool',
1315
'load_integration_tool',
1416
'load_skill',
17+
'load_slide_layout',
1518
'search_integration_tools',
1619
])
1720

apps/sim/lib/copilot/tools/tool-display.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -535,6 +535,7 @@ const TOOL_TITLES: Record<string, string> = {
535535
search_integration_tools: 'Finding the right integration',
536536
load_integration_tool: 'Loading integration tools',
537537
load_skill: 'Loading skill',
538+
load_slide_layout: 'Loading slide layout',
538539
read: 'Reading file',
539540
search_library_docs: 'Searching library docs',
540541
user_table: 'Managing table',

0 commit comments

Comments
 (0)