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
7 changes: 1 addition & 6 deletions apps/sim/blocks/blocks/trello.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,6 @@ export const TrelloBlock: BlockConfig<ToolResponse> = {
text: { type: 'string', description: 'Comment text' },
},
outputs: {
success: { type: 'boolean', description: 'Whether the operation was successful' },
lists: {
type: 'array',
description: 'Array of list objects (for list_lists operation)',
Expand All @@ -404,11 +403,7 @@ export const TrelloBlock: BlockConfig<ToolResponse> = {
},
count: {
type: 'number',
description: 'Number of items returned (boards, cards, actions)',
},
error: {
type: 'string',
description: 'Error message if operation failed',
description: 'Number of items returned (lists, cards, actions)',
},
},
}
7 changes: 6 additions & 1 deletion apps/sim/tools/telegram/send_document.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ export const telegramSendDocumentTool: ToolConfig<
'Content-Type': 'application/json',
}),
body: (params: TelegramSendDocumentParams) => {
let normalizedFiles: unknown[] | null = null
if (params.files) {
normalizedFiles = Array.isArray(params.files) ? params.files : [params.files]
}

return {
botToken: params.botToken,
chatId: params.chatId,
files: params.files || null,
files: normalizedFiles,
caption: params.caption,
}
},
Expand Down
2 changes: 0 additions & 2 deletions apps/sim/tools/trello/add_comment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,9 @@ export const trelloAddCommentTool: ToolConfig<TrelloAddCommentParams, TrelloAddC
},

outputs: {
success: { type: 'boolean', description: 'Whether the comment was added successfully' },
comment: {
type: 'object',
description: 'The created comment object with id, text, date, and member creator',
},
error: { type: 'string', description: 'Error message if operation failed' },
},
}
2 changes: 0 additions & 2 deletions apps/sim/tools/trello/create_card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,9 @@ export const trelloCreateCardTool: ToolConfig<TrelloCreateCardParams, TrelloCrea
},

outputs: {
success: { type: 'boolean', description: 'Whether the card was created successfully' },
card: {
type: 'object',
description: 'The created card object with id, name, desc, url, and other properties',
},
error: { type: 'string', description: 'Error message if operation failed' },
},
}
2 changes: 0 additions & 2 deletions apps/sim/tools/trello/get_actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ export const trelloGetActionsTool: ToolConfig<TrelloGetActionsParams, TrelloGetA
},

outputs: {
success: { type: 'boolean', description: 'Whether the operation was successful' },
actions: {
type: 'array',
description: 'Array of action objects with type, date, member, and data',
},
count: { type: 'number', description: 'Number of actions returned' },
error: { type: 'string', description: 'Error message if operation failed' },
},
}
2 changes: 0 additions & 2 deletions apps/sim/tools/trello/list_cards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,11 @@ export const trelloListCardsTool: ToolConfig<TrelloListCardsParams, TrelloListCa
},

outputs: {
success: { type: 'boolean', description: 'Whether the operation was successful' },
cards: {
type: 'array',
description:
'Array of card objects with id, name, desc, url, board/list IDs, labels, and due date',
},
count: { type: 'number', description: 'Number of cards returned' },
error: { type: 'string', description: 'Error message if operation failed' },
},
}
2 changes: 0 additions & 2 deletions apps/sim/tools/trello/list_lists.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ export const trelloListListsTool: ToolConfig<TrelloListListsParams, TrelloListLi
},

outputs: {
success: { type: 'boolean', description: 'Whether the operation was successful' },
lists: {
type: 'array',
description: 'Array of list objects with id, name, closed, pos, and idBoard',
},
count: { type: 'number', description: 'Number of lists returned' },
error: { type: 'string', description: 'Error message if operation failed' },
},
}
2 changes: 0 additions & 2 deletions apps/sim/tools/trello/update_card.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,9 @@ export const trelloUpdateCardTool: ToolConfig<TrelloUpdateCardParams, TrelloUpda
},

outputs: {
success: { type: 'boolean', description: 'Whether the card was updated successfully' },
card: {
type: 'object',
description: 'The updated card object with id, name, desc, url, and other properties',
},
error: { type: 'string', description: 'Error message if operation failed' },
},
}
Loading