Skip to content

Commit dff9bd6

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 cd339c8 commit dff9bd6

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
@@ -73,6 +73,7 @@ export interface ToolCatalogEntry {
7373
| 'load_deployment'
7474
| 'load_integration_tool'
7575
| 'load_skill'
76+
| 'load_slide_layout'
7677
| 'manage_credential'
7778
| 'manage_custom_tool'
7879
| 'manage_knowledge_base'
@@ -203,6 +204,7 @@ export interface ToolCatalogEntry {
203204
| 'load_deployment'
204205
| 'load_integration_tool'
205206
| 'load_skill'
207+
| 'load_slide_layout'
206208
| 'manage_credential'
207209
| 'manage_custom_tool'
208210
| 'manage_knowledge_base'
@@ -3295,6 +3297,24 @@ export const LoadSkill: ToolCatalogEntry = {
32953297
},
32963298
}
32973299

3300+
export const LoadSlideLayout: ToolCatalogEntry = {
3301+
id: 'load_slide_layout',
3302+
name: 'load_slide_layout',
3303+
route: 'go',
3304+
mode: 'sync',
3305+
parameters: {
3306+
type: 'object',
3307+
properties: {
3308+
name: {
3309+
type: 'string',
3310+
description:
3311+
"Layout name exactly as it appears in the Layout Library index (e.g. 'metric-cards').",
3312+
},
3313+
},
3314+
required: ['name'],
3315+
},
3316+
}
3317+
32983318
export const ManageCredential: ToolCatalogEntry = {
32993319
id: 'manage_credential',
33003320
name: 'manage_credential',
@@ -7195,6 +7215,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
71957215
[LoadDeployment.id]: LoadDeployment,
71967216
[LoadIntegrationTool.id]: LoadIntegrationTool,
71977217
[LoadSkill.id]: LoadSkill,
7218+
[LoadSlideLayout.id]: LoadSlideLayout,
71987219
[ManageCredential.id]: ManageCredential,
71997220
[ManageCustomTool.id]: ManageCustomTool,
72007221
[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
@@ -3189,6 +3189,20 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
31893189
},
31903190
resultSchema: undefined,
31913191
},
3192+
load_slide_layout: {
3193+
parameters: {
3194+
type: 'object',
3195+
properties: {
3196+
name: {
3197+
type: 'string',
3198+
description:
3199+
"Layout name exactly as it appears in the Layout Library index (e.g. 'metric-cards').",
3200+
},
3201+
},
3202+
required: ['name'],
3203+
},
3204+
resultSchema: undefined,
3205+
},
31923206
manage_credential: {
31933207
parameters: {
31943208
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
@@ -549,6 +549,7 @@ const TOOL_TITLES: Record<string, string> = {
549549
search_integration_tools: 'Finding the right integration',
550550
load_integration_tool: 'Loading integration tools',
551551
load_skill: 'Loading skill',
552+
load_slide_layout: 'Loading slide layout',
552553
read: 'Reading file',
553554
search_library_docs: 'Searching library docs',
554555
user_table: 'Managing table',

0 commit comments

Comments
 (0)