René's URL Explorer Experiment


Title: feat(agent): allow variable tool permission modes by j15z · Pull Request #7538 · simstudioai/sim · GitHub

Open Graph Title: feat(agent): allow variable tool permission modes by j15z · Pull Request #7538 · simstudioai/sim

X Title: feat(agent): allow variable tool permission modes by j15z · Pull Request #7538 · simstudioai/sim

Description: Summary Let an agent tool's Permission Mode be a fixed selector value or a variable such as . The expression is resolved before tool filtering, and anything other than auto, force, or none is rejected before provider or tool work starts. Stores the fixed usageControl and the usageControlExpression separately, with a selector/variable toggle in the expanded tool controls. API and Copilot edits select the mode from the field they send. A tool that carries both values keeps its current mode, and each tool keeps its mode when an edit reorders the tools list. Preserves the expression through workflow search, import/export, and sanitization, and adds it to the v2 OpenAPI spec and generated CLI types. Moves Permission Mode from the tool header into the expanded tool. Clicking a tool header now expands it (custom and MCP tools included), a pencil button opens the custom tool editor, and a tool set to None is greyed out. Companion: simstudioai/mothership#488 Type of Change Bug fix New feature Breaking change Documentation Other: ___________ Testing Unit and engine tests cover fixed and variable resolution, invalid values, secret tracking, mode selection and unchanged round trips through API edits, modes following reordered tools, import/export, search, and sanitization. type-check, lint, check:api-validation, check:openapi, check:cli-api, and check:cli-docs pass, and CI passes. Manual Chrome and CLI testing covered selector and variable modes end to end. Reviewers: applyAgentToolUsageControlModesAfterEdits in lib/workflows/editing/engine.ts runs after the tool canonical-mode reindex, so a mode chosen through an API edit lands on its tool's final position. 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) Screenshots/Videos Before: After:

Open Graph Description: Summary Let an agent tool's Permission Mode be a fixed selector value or a variable such as <start.toolMode>. The expression is resolved before tool filtering, and anything other than aut...

X Description: Summary Let an agent tool&#39;s Permission Mode be a fixed selector value or a variable such as &lt;start.toolMode&gt;. The expression is resolved before tool filtering, and anything ot...

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

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:880ef5f7-93f2-02e7-e4be-74f332a32e19
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idBAF8:2FBB44:244139:32C5F0:6AFB5178
html-safe-nonce2695c00ec6787b6f764a805ed0ad7dd54103922848bbda38141aa4b40940992e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQUY4OjJGQkI0NDoyNDQxMzk6MzJDNUYwOjZBRkI1MTc4IiwidmlzaXRvcl9pZCI6IjYzNzgyMzYyNTgzOTIxNjY3NzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac269dfe70be6c24c60626a2eb2db7d0b858176e6ab17a82b77935e643f6f3ca5a
hovercard-subject-tagpull_request:4453532181
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/7538/files
twitter:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
og:image:altSummary Let an agent tool's Permission Mode be a fixed selector value or a variable such as <start.toolMode>. The expression is resolved before tool filtering, and anything other than aut...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/7538/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7538%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F7538%2Ffiles
Sign uphttps://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/7538/files
Reloadhttps://github.com/simstudioai/sim/pull/7538/files
Reloadhttps://github.com/simstudioai/sim/pull/7538/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://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
j15zhttps://github.com/j15z
staginghttps://github.com/simstudioai/sim/tree/staging
codex/agent-tool-permission-modehttps://github.com/simstudioai/sim/tree/codex/agent-tool-permission-mode
Conversation 56 https://github.com/simstudioai/sim/pull/7538
Commits 3 https://github.com/simstudioai/sim/pull/7538/commits
Checks 37 https://github.com/simstudioai/sim/pull/7538/checks
Files changed https://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
feat(agent): allow variable tool permission modes https://github.com/simstudioai/sim/pull/7538/files#top
Show all changes 3 commits https://github.com/simstudioai/sim/pull/7538/files
b3530db feat(agent): allow variable tool permission modes j15z Sep 11, 2026 https://github.com/simstudioai/sim/pull/7538/commits/b3530db90ec05d0a8f349670bfdbaf1efa927e65
8da1dcb fix(agent): keep permission modes with reordered tools across API edits j15z Sep 14, 2026 https://github.com/simstudioai/sim/pull/7538/commits/8da1dcbb0bb9c6110666354d0543cc195220c121
b17a4ac docs(agent): document the tool Permission Mode control j15z Sep 14, 2026 https://github.com/simstudioai/sim/pull/7538/commits/b17a4ac862acb50a2fe450e5a815de470929a6d5
Clear filters https://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
openapi-v2-workflows.json https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
usage-control.tsx https://github.com/simstudioai/sim/pull/7538/files#diff-42f54841e2e47aaf5964133914dff6af5ac04ac51752cb92cf89668809939ad6
tool-input.tsx https://github.com/simstudioai/sim/pull/7538/files#diff-9d18e37ae3bc1e0d6e4ea27b679516985bafc2a806b5adbddd05f35599dc5044
agent-handler.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-5fa11051a09b82360438ce6a447b4eeb6faa66fa2f668ce615f81fb4ea906f07
agent-handler.ts https://github.com/simstudioai/sim/pull/7538/files#diff-99cbd7f57b71719ca1561f15e7aecdc9f7a969ae5ea3589aee9fa64b3c9bf614
types.ts https://github.com/simstudioai/sim/pull/7538/files#diff-4c269ad308778a9d7a7cceec214349aa6d92a2b2cddd18bcfb39ad7dddc8d86a
resolver.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-2fa26b2dbc26ddf18b930cacd45e8f8785bea1a3c1183192cbb19678ea81b649
workflow-agent-tools.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-06492807edc8a327d8505c0528b0786c4b4cc46e2d33c3f7a2cba6faa05fd51a
workflows.ts https://github.com/simstudioai/sim/pull/7538/files#diff-7c1b6e587b506ea981d107bc7496349fd5020fd823e34f9c13d70f6845829728
builders.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-0469ef64faa551e59b7bdf121fe0c934685ebd309bba11726f54176c19997e09
builders.ts https://github.com/simstudioai/sim/pull/7538/files#diff-77372451cda55e4433dc1eec73daa7839f540be5f619e6c157a5a289ba1ef502
engine.ts https://github.com/simstudioai/sim/pull/7538/files#diff-edcfe5af5b1850957818b19d0fc5feff46cae6acc1ddbb2a85eeb1610ae37eba
operations.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-6bb2b130cdc72cb4252605227c02134b7c8d196515f6426379ca6d41a2d7f1cc
import-export.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-2e36700417cd1c79b4af6b3b1e2f2ebf6230b08f697506c64f7c08f913e3e0f2
json-sanitizer.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-6625eabd45a4205b12dd668fb02522685639a0a837d5556de10690d56ad3d8cc
json-sanitizer.ts https://github.com/simstudioai/sim/pull/7538/files#diff-985e9a52442474800b843457de8718a7dc0789b77c17f1c4aebbc89f1e91985f
indexer.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-5ffc04e0dbdd5ef8efa2d91372c71ecf297365c14b31b2c22b9253bc395b6615
indexer.ts https://github.com/simstudioai/sim/pull/7538/files#diff-8d4f1d87c5bf2fd16d5cfcd0fc5f42322e04a9e5fca83f9fbb9938bda006769e
types.ts https://github.com/simstudioai/sim/pull/7538/files#diff-aa1401b247faef8d992aa42c1bca30b5f9f4de319d2c8670e53f87b3f65b1eb3
usage-control.test.ts https://github.com/simstudioai/sim/pull/7538/files#diff-bf081466e5711cc8871a3677757f72c5383f7dee3ed7fbfa2616016fc73e42b2
usage-control.ts https://github.com/simstudioai/sim/pull/7538/files#diff-a127047fe1557b9a51de85be7311077a772c672e8d9289334787033eb9bf8ee6
v2-api.ts https://github.com/simstudioai/sim/pull/7538/files#diff-e856e756b18965607efb943e85bad153871936ce3ee5180ec2e8073a28dd1dd7
apps/docs/openapi-v2-workflows.jsonhttps://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
View file https://github.com/simstudioai/sim/blob/b17a4ac862acb50a2fe450e5a815de470929a6d5/apps/docs/openapi-v2-workflows.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7538/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
https://github.com/simstudioai/sim/pull/7538/files#diff-811f737e7f97ec52156a37e71892822626b5b4de295efebd20992198d162149b
...ents/editor/components/sub-block/components/tool-input/components/tools/usage-control.tsxhttps://github.com/simstudioai/sim/pull/7538/files#diff-42f54841e2e47aaf5964133914dff6af5ac04ac51752cb92cf89668809939ad6
View file https://github.com/simstudioai/sim/blob/b17a4ac862acb50a2fe450e5a815de470929a6d5/apps/sim/app/workspace/%5BworkspaceId%5D/w/%5BworkflowId%5D/components/panel/components/editor/components/sub-block/components/tool-input/components/tools/usage-control.tsx
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/7538/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/7538/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.