Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
more
  • Loading branch information
waleedlatif1 committed Feb 19, 2026
commit a42a62005ef0da47d69805a48416e7e5986a29d1
3 changes: 0 additions & 3 deletions apps/docs/content/docs/en/tools/cloudflare.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,6 @@ Lists DNS records for a specific zone.
| ↳ `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
| ↳ `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
| ↳ `meta` | object | Record metadata |
| ↳ `auto_added` | boolean | Whether the record was auto-added by Cloudflare |
| ↳ `source` | string | Source of the DNS record |
| ↳ `created_on` | string | ISO 8601 timestamp when the record was created |
| ↳ `modified_on` | string | ISO 8601 timestamp when the record was last modified |
Expand Down Expand Up @@ -309,7 +308,6 @@ Creates a new DNS record for a zone.
| `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
| `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
| `meta` | object | Record metadata |
| ↳ `auto_added` | boolean | Whether the record was auto-added by Cloudflare |
| ↳ `source` | string | Source of the DNS record |
| `created_on` | string | ISO 8601 timestamp when the record was created |
| `modified_on` | string | ISO 8601 timestamp when the record was last modified |
Expand Down Expand Up @@ -354,7 +352,6 @@ Updates an existing DNS record for a zone.
| `comment_modified_on` | string | ISO 8601 timestamp when the comment was last modified |
| `tags_modified_on` | string | ISO 8601 timestamp when tags were last modified |
| `meta` | object | Record metadata |
| ↳ `auto_added` | boolean | Whether the record was auto-added by Cloudflare |
| ↳ `source` | string | Source of the DNS record |
| `created_on` | string | ISO 8601 timestamp when the record was created |
| `modified_on` | string | ISO 8601 timestamp when the record was last modified |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export async function POST(request: NextRequest) {
}

const baseUrl = validatedData.environmentUrl.replace(/\/$/, '')
const uploadUrl = `${baseUrl}/api/data/v9.2/${validatedData.entitySetName}(${validatedData.recordId})/${validatedData.fileColumn}?x-ms-file-name=${encodeURIComponent(validatedData.fileName)}`
const uploadUrl = `${baseUrl}/api/data/v9.2/${validatedData.entitySetName}(${validatedData.recordId})/${validatedData.fileColumn}`

const response = await fetch(uploadUrl, {
method: 'PATCH',
Expand Down
3 changes: 1 addition & 2 deletions apps/sim/blocks/blocks/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1068,8 +1068,7 @@ Return ONLY the comma-separated URLs - no explanations, no extra text.`,
},
meta: {
type: 'json',
description:
'Resource metadata (zone: cdn_only, dns_only, etc.; DNS record: auto_added, source)',
description: 'Resource metadata (zone: cdn_only, dns_only, etc.; DNS record: source)',
},
vanity_name_servers: { type: 'json', description: 'Custom vanity name servers' },
permissions: { type: 'json', description: 'User permissions for the zone' },
Expand Down
10 changes: 7 additions & 3 deletions apps/sim/blocks/blocks/microsoft_dataverse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
},
required: {
field: 'operation',
value: ['whoami', 'search'],
value: ['whoami', 'search', 'execute_action', 'execute_function'],
not: true,
},
},
Expand All @@ -96,6 +96,7 @@ export const MicrosoftDataverseBlock: BlockConfig<DataverseResponse> = {
'upload_file',
'download_file',
'execute_action',
'execute_function',
],
},
required: {
Expand Down Expand Up @@ -371,7 +372,7 @@ Return ONLY the filter expression - no $filter= prefix, no explanations.`,
title: 'Order By',
type: 'short-input',
placeholder: 'e.g., name asc, createdon desc',
condition: { field: 'operation', value: 'list_records' },
condition: { field: 'operation', value: ['list_records', 'search'] },
mode: 'advanced',
wandConfig: {
enabled: true,
Expand Down Expand Up @@ -452,7 +453,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
type: 'short-input',
placeholder: 'Target record GUID',
condition: { field: 'operation', value: ['associate', 'disassociate'] },
required: { field: 'operation', value: ['associate', 'disassociate'] },
required: { field: 'operation', value: 'associate' },
},
Comment thread
waleedlatif1 marked this conversation as resolved.
],
tools: {
Expand Down Expand Up @@ -498,6 +499,8 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
if (rest.functionParameters) {
cleanParams.parameters = rest.functionParameters
rest.functionParameters = undefined
// Prevent stale action parameters from overwriting mapped function parameters
rest.parameters = undefined
}
Comment thread
waleedlatif1 marked this conversation as resolved.

Object.entries(rest).forEach(([key, value]) => {
Expand Down Expand Up @@ -581,6 +584,7 @@ Return ONLY the expand expression - no $expand= prefix, no explanations.`,
fetchXmlPagingCookie: { type: 'string', description: 'Paging cookie for FetchXML pagination' },
moreRecords: { type: 'boolean', description: 'Whether more records are available (FetchXML)' },
results: { type: 'json', description: 'Search results array' },
facets: { type: 'json', description: 'Facet results for search (when facets requested)' },
fileContent: { type: 'string', description: 'Base64-encoded downloaded file content' },
fileName: { type: 'string', description: 'Downloaded file name' },
fileSize: { type: 'number', description: 'File size in bytes' },
Expand Down
4 changes: 0 additions & 4 deletions apps/sim/tools/cloudflare/create_dns_record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,6 @@ export const createDnsRecordTool: ToolConfig<
description: 'Record metadata',
optional: true,
properties: {
auto_added: {
type: 'boolean',
description: 'Whether the record was auto-added by Cloudflare',
},
source: { type: 'string', description: 'Source of the DNS record' },
},
},
Expand Down
6 changes: 1 addition & 5 deletions apps/sim/tools/cloudflare/list_dns_records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const listDnsRecordsTool: ToolConfig<
if (params.proxied !== undefined) url.searchParams.append('proxied', String(params.proxied))
if (params.search) url.searchParams.append('search', params.search)
if (params.tag) url.searchParams.append('tag', params.tag)
if (params.tag_match) url.searchParams.append('tag-match', params.tag_match)
if (params.tag_match) url.searchParams.append('tag_match', params.tag_match)
if (params.commentFilter) url.searchParams.append('comment.contains', params.commentFilter)
return url.toString()
},
Expand Down Expand Up @@ -214,10 +214,6 @@ export const listDnsRecordsTool: ToolConfig<
description: 'Record metadata',
optional: true,
properties: {
auto_added: {
type: 'boolean',
description: 'Whether the record was auto-added by Cloudflare',
},
source: { type: 'string', description: 'Source of the DNS record' },
},
},
Expand Down
3 changes: 1 addition & 2 deletions apps/sim/tools/cloudflare/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ export interface CloudflareListDnsRecordsParams extends CloudflareBaseParams {
}

export interface CloudflareDnsRecordMeta {
auto_added: boolean
source: string
}

Expand Down Expand Up @@ -364,7 +363,7 @@ export interface CloudflareDnsAnalyticsParams extends CloudflareBaseParams {
zoneId: string
since?: string
until?: string
metrics?: string
metrics: string
dimensions?: string
filters?: string
sort?: string
Expand Down
4 changes: 0 additions & 4 deletions apps/sim/tools/cloudflare/update_dns_record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,10 +205,6 @@ export const updateDnsRecordTool: ToolConfig<
description: 'Record metadata',
optional: true,
properties: {
auto_added: {
type: 'boolean',
description: 'Whether the record was auto-added by Cloudflare',
},
source: { type: 'string', description: 'Source of the DNS record' },
},
},
Expand Down
1 change: 1 addition & 0 deletions apps/sim/tools/microsoft_dataverse/create_multiple.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ export const dataverseCreateMultipleTool: ToolConfig<
description: 'Array of GUIDs for the created records',
items: {
type: 'string',
description: 'GUID of a created record',
},
},
count: { type: 'number', description: 'Number of records created' },
Expand Down
4 changes: 2 additions & 2 deletions apps/sim/tools/microsoft_dataverse/download_file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ export const dataverseDownloadFileTool: ToolConfig<

outputs: {
fileContent: { type: 'string', description: 'Base64-encoded file content' },
fileName: { type: 'string', description: 'Name of the downloaded file' },
fileName: { type: 'string', description: 'Name of the downloaded file', optional: true },
fileSize: { type: 'number', description: 'File size in bytes' },
mimeType: { type: 'string', description: 'MIME type of the file' },
mimeType: { type: 'string', description: 'MIME type of the file', optional: true },
success: { type: 'boolean', description: 'Whether the file was downloaded successfully' },
},
}