Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions apps/sim/lib/copilot/generated/tool-catalog-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export interface ToolCatalogEntry {
| 'load_deployment'
| 'load_integration_tool'
| 'load_skill'
| 'load_slide_layout'
| 'manage_credential'
| 'manage_custom_tool'
| 'manage_knowledge_base'
Expand Down Expand Up @@ -199,6 +200,7 @@ export interface ToolCatalogEntry {
| 'load_deployment'
| 'load_integration_tool'
| 'load_skill'
| 'load_slide_layout'
| 'manage_credential'
| 'manage_custom_tool'
| 'manage_knowledge_base'
Expand Down Expand Up @@ -3143,6 +3145,24 @@ export const LoadSkill: ToolCatalogEntry = {
},
}

export const LoadSlideLayout: ToolCatalogEntry = {
id: 'load_slide_layout',
name: 'load_slide_layout',
route: 'go',
mode: 'sync',
parameters: {
type: 'object',
properties: {
name: {
type: 'string',
description:
"Layout name exactly as it appears in the Layout Library index (e.g. 'metric-cards').",
},
},
required: ['name'],
},
}
Comment thread
j15z marked this conversation as resolved.

export const ManageCredential: ToolCatalogEntry = {
id: 'manage_credential',
name: 'manage_credential',
Expand Down Expand Up @@ -7041,6 +7061,7 @@ export const TOOL_CATALOG: Record<string, ToolCatalogEntry> = {
[LoadDeployment.id]: LoadDeployment,
[LoadIntegrationTool.id]: LoadIntegrationTool,
[LoadSkill.id]: LoadSkill,
[LoadSlideLayout.id]: LoadSlideLayout,
[ManageCredential.id]: ManageCredential,
[ManageCustomTool.id]: ManageCustomTool,
[ManageKnowledgeBase.id]: ManageKnowledgeBase,
Expand Down
14 changes: 14 additions & 0 deletions apps/sim/lib/copilot/generated/tool-schemas-v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3028,6 +3028,20 @@ export const TOOL_RUNTIME_SCHEMAS: Record<string, ToolRuntimeSchemaEntry> = {
},
resultSchema: undefined,
},
load_slide_layout: {
parameters: {
type: 'object',
properties: {
name: {
type: 'string',
description:
"Layout name exactly as it appears in the Layout Library index (e.g. 'metric-cards').",
},
},
required: ['name'],
},
resultSchema: undefined,
},
manage_credential: {
parameters: {
type: 'object',
Expand Down
5 changes: 4 additions & 1 deletion apps/sim/lib/copilot/tools/client/hidden-tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,16 @@
// search_integration_tools is gateway plumbing: the discovery step is not a
// user-meaningful action, only the resolved call_integration_tool row is.
// load_skill is the same shape — the agent pulling in a reference guide before
// doing the work is a step toward the action, not the action.
// doing the work is a step toward the action, not the action. load_slide_layout
// is that shape again: the file agent reading a layout from the slide library
// ahead of writing the deck.
const HIDDEN_TOOL_NAMES = new Set([
'load_agent_skill',
'load_custom_tool',
'load_mcp_tool',
'load_integration_tool',
'load_skill',
'load_slide_layout',
'search_integration_tools',
])

Expand Down
1 change: 1 addition & 0 deletions apps/sim/lib/copilot/tools/tool-display.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,7 @@ const TOOL_TITLES: Record<string, string> = {
search_integration_tools: 'Finding the right integration',
load_integration_tool: 'Loading integration tools',
load_skill: 'Loading skill',
load_slide_layout: 'Loading slide layout',
read: 'Reading file',
search_library_docs: 'Searching library docs',
user_table: 'Managing table',
Expand Down
Loading