René's URL Explorer Experiment


Title: fix(custom-blocks): render and execute custom blocks as agent tools by TheodoreSpeaks · Pull Request #5811 · simstudioai/sim · GitHub

Open Graph Title: fix(custom-blocks): render and execute custom blocks as agent tools by TheodoreSpeaks · Pull Request #5811 · simstudioai/sim

X Title: fix(custom-blocks): render and execute custom blocks as agent tools by TheodoreSpeaks · Pull Request #5811 · simstudioai/sim

Description: Summary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real fields They also couldn't execute: added an in-process custom_block_executor that reuses WorkflowBlockHandler, so authority (org-scoped owner identity, latest deployment, curated outputs, cost roll-up) matches the canvas path Fixed getToolIdForOperation reading a stale block cache, which made "add tool" a silent no-op for async-hydrated custom blocks Registered workflow_executor + custom_block_executor in the minimal dev registry so tool config resolves under SIM_DEV_MINIMAL_REGISTRY=1 Kept the executor/db graph out of the client bundle by moving execution into a server-only runner that executeTool dynamic-imports Type of Change Bug fix Testing bun run lint and bun run check:api-validation:strict pass, tsc --noEmit clean, and 139 tests pass across the touched suites (render branch, tool transform, execution runner). Not yet exercised in a running browser. Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real fields They also co...

X Description: Summary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real...

Opengraph URL: https://github.com/simstudioai/sim/pull/5811

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:487afc5a-10b3-9e31-a6d3-a89e26c8f524
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id96C4:240318:7E612B:B3DF9E:6A631769
html-safe-noncea51df3000b51f17a7212c0606976ac3e014de917f3a9b57868e0e6a688a70b08
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkM0OjI0MDMxODo3RTYxMkI6QjNERjlFOjZBNjMxNzY5IiwidmlzaXRvcl9pZCI6IjE5Nzg0MzgzMzY5MjQyOTI5NjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacd29510e28e6e12597e091d8c3ba31c2135f1a3bc4b5d418a1204e422d88f3d45
hovercard-subject-tagpull_request:4102757842
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/simstudioai/sim/pull/5811/files
twitter:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/19564703?s=400&v=4
og:image:altSummary Custom blocks added as Agent tools rendered generic "Workflow ID"/"Input Mapping" instead of their own inputs — they now render the block's real fields They also co...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release6a93e25585f487ddff9e3996c06d5b869d6e1828
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5811/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5811%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5811%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/5811/files
Reloadhttps://github.com/simstudioai/sim/pull/5811/files
Reloadhttps://github.com/simstudioai/sim/pull/5811/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
simstudioai https://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Notifications https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Fork 3.7k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Star 29.2k https://github.com/login?return_to=%2Fsimstudioai%2Fsim
Code https://github.com/simstudioai/sim
Issues 111 https://github.com/simstudioai/sim/issues
Pull requests 119 https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality 0 https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Code https://github.com/simstudioai/sim
Issues https://github.com/simstudioai/sim/issues
Pull requests https://github.com/simstudioai/sim/pulls
Actions https://github.com/simstudioai/sim/actions
Projects https://github.com/simstudioai/sim/projects
Security and quality https://github.com/simstudioai/sim/security
Insights https://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
TheodoreSpeakshttps://github.com/TheodoreSpeaks
staginghttps://github.com/simstudioai/sim/tree/staging
fix/custom-block-agent-toolhttps://github.com/simstudioai/sim/tree/fix/custom-block-agent-tool
Conversation 21 https://github.com/simstudioai/sim/pull/5811
Commits 3 https://github.com/simstudioai/sim/pull/5811/commits
Checks 19 https://github.com/simstudioai/sim/pull/5811/checks
Files changed https://github.com/simstudioai/sim/pull/5811/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
fix(custom-blocks): render and execute custom blocks as agent tools https://github.com/simstudioai/sim/pull/5811/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/5811/files
8a3644c fix(custom-blocks): render and execute custom blocks as agent tools TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5811/commits/8a3644c3663fe0846c0d9ce68f163baf96084ae9
4ab45cf fix(custom-blocks): address review findings on agent-tool execution TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5811/commits/4ab45cf020a5ca4d90f7fb7b320a2ed9ed392c82
2db4e6c fix(custom-blocks): move executor tool id out of the custom-tool name… TheodoreSpeaks Jul 21, 2026 https://github.com/simstudioai/sim/pull/5811/commits/2db4e6cf41e457fce966f3a253dfc565f3066fe5
Clear filters https://github.com/simstudioai/sim/pull/5811/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
tool-input.tsx https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
build-config.ts https://github.com/simstudioai/sim/pull/5811/files#diff-d76cceae57ae6abf659e49650584a6bb96d4ff4fc4a84e1d211ac5501ecb3a0d
agent-handler.ts https://github.com/simstudioai/sim/pull/5811/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
sim-tools.ts https://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
custom-block-tool-runner.test.ts https://github.com/simstudioai/sim/pull/5811/files#diff-8221e78b18a066a665c0b5aa9f6b955a1de62128f944c94f19bf27580b5bb0e6
custom-block-tool-runner.ts https://github.com/simstudioai/sim/pull/5811/files#diff-c20239fc4890ba48ec0a56928d0037e7d76e75be22da776dc920a97fd0e2de0e
workflow-handler.ts https://github.com/simstudioai/sim/pull/5811/files#diff-f0205c12fc1164078345e484f0f3b9ee6c319122caeef120950fb5b7cc37d71f
operations.ts https://github.com/simstudioai/sim/pull/5811/files#diff-62275746551c533d2f1fde5464bc8e91f8884813163e90d8a4c9e905c9ffa44f
custom-block-tool.test.ts https://github.com/simstudioai/sim/pull/5811/files#diff-d2124d540a33442ed63f569ebf30b900e29ebd7f0a01e75e5521d26ec050f9d8
utils.ts https://github.com/simstudioai/sim/pull/5811/files#diff-e5a8ed3fe51b6470c7acddd9beac4eecb4c915cacc23d40b68b566a998ac121e
index.ts https://github.com/simstudioai/sim/pull/5811/files#diff-47ae0066fea628681d98d136239929a240a55aaf3d99ef293c83b3eca7e197c1
normalize.ts https://github.com/simstudioai/sim/pull/5811/files#diff-c8d34a70a4d0dfaafb65a12c1ce1a1a1ada5d5c2051e976a99e8c0b984e029d0
params.test.ts https://github.com/simstudioai/sim/pull/5811/files#diff-2a6b05a23c0402523d5acb6236fade89bec013d19315864b4b1fec0f4ad96996
params.ts https://github.com/simstudioai/sim/pull/5811/files#diff-e0607e3a0993ac21ca5f808e30e0c6cf25e9ce2f5cc9e09a02afd48243d6b420
registry.minimal.ts https://github.com/simstudioai/sim/pull/5811/files#diff-c663b1d0489af26d6d991344e4825794b1efce7e3cd21b47ffeed261c823567c
registry.ts https://github.com/simstudioai/sim/pull/5811/files#diff-a05e54887bf05477726b00df4183dd4a3fa0fd1f82b867bbf156e1b6a6d7e3fa
custom-block-executor.ts https://github.com/simstudioai/sim/pull/5811/files#diff-1c303fb7ba6b99763ba7a139f3b27ced0810332bf8d6d73e000dd990656639c1
index.ts https://github.com/simstudioai/sim/pull/5811/files#diff-3781291ff0d824671dd78a7b8edd95e1662e9655e1e58d8c073829a29c6740ed
...ponents/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsxhttps://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
View file https://github.com/simstudioai/sim/blob/2db4e6cf41e457fce966f3a253dfc565f3066fe5/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/panel/components/editor/components/sub-block/components/tool-input/tool-input.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5811/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
https://github.com/simstudioai/sim/pull/5811/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
apps/sim/blocks/custom/build-config.tshttps://github.com/simstudioai/sim/pull/5811/files#diff-d76cceae57ae6abf659e49650584a6bb96d4ff4fc4a84e1d211ac5501ecb3a0d
View file https://github.com/simstudioai/sim/blob/2db4e6cf41e457fce966f3a253dfc565f3066fe5/apps/sim/blocks/custom/build-config.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5811/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5811/files#diff-d76cceae57ae6abf659e49650584a6bb96d4ff4fc4a84e1d211ac5501ecb3a0d
https://github.com/simstudioai/sim/pull/5811/files#diff-d76cceae57ae6abf659e49650584a6bb96d4ff4fc4a84e1d211ac5501ecb3a0d
https://github.com/simstudioai/sim/pull/5811/files#diff-d76cceae57ae6abf659e49650584a6bb96d4ff4fc4a84e1d211ac5501ecb3a0d
https://github.com/simstudioai/sim/pull/5811/files#diff-d76cceae57ae6abf659e49650584a6bb96d4ff4fc4a84e1d211ac5501ecb3a0d
apps/sim/executor/handlers/agent/agent-handler.tshttps://github.com/simstudioai/sim/pull/5811/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
View file https://github.com/simstudioai/sim/blob/2db4e6cf41e457fce966f3a253dfc565f3066fe5/apps/sim/executor/handlers/agent/agent-handler.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5811/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5811/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
https://github.com/simstudioai/sim/pull/5811/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
https://github.com/simstudioai/sim/pull/5811/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
https://github.com/simstudioai/sim/pull/5811/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
apps/sim/executor/handlers/pi/sim-tools.tshttps://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
View file https://github.com/simstudioai/sim/blob/2db4e6cf41e457fce966f3a253dfc565f3066fe5/apps/sim/executor/handlers/pi/sim-tools.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5811/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
https://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
https://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
https://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
https://github.com/simstudioai/sim/pull/5811/files#diff-91b96d852412076af5f7482898a3583e12413ffffd7e227b1b3e955d4ccfd3e4
apps/sim/executor/handlers/workflow/custom-block-tool-runner.test.tshttps://github.com/simstudioai/sim/pull/5811/files#diff-8221e78b18a066a665c0b5aa9f6b955a1de62128f944c94f19bf27580b5bb0e6
View file https://github.com/simstudioai/sim/blob/2db4e6cf41e457fce966f3a253dfc565f3066fe5/apps/sim/executor/handlers/workflow/custom-block-tool-runner.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5811/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5811/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.