René's URL Explorer Experiment


Title: feat(copilot): add share_file tool + surface file share state to the agent by TheodoreSpeaks · Pull Request #5656 · simstudioai/sim · GitHub

Open Graph Title: feat(copilot): add share_file tool + surface file share state to the agent by TheodoreSpeaks · Pull Request #5656 · simstudioai/sim

X Title: feat(copilot): add share_file tool + surface file share state to the agent by TheodoreSpeaks · Pull Request #5656 · simstudioai/sim

Description: Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and the FILE_SHARED/FILE_SHARE_DISABLED audit), then delegates to the shared upsertFileShare — same path the files UI uses Register it in the server tool router (+ generated catalog entries) Surface an ambient shared/shareAuthType flag on each file's metadata via one batched share lookup (no N+1), so the agent can see and grep what's shared — mirrors how workflows expose isDeployed Pairs with Copilot: simstudioai/mothership#353 (tool definition + agent routing). That must merge first — mship-tools:check regenerates the catalog from the copilot repo's tool-catalog-v1.json, so this PR's check stays red until #353 lands. Type of Change New feature Testing tsc --noEmit 0 errors; bun run lint:check and check:api-validation:strict pass; biome clean 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) Companion: simstudioai/mothership#353

Open Graph Description: Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and th...

X Description: Summary Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and th...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:9fb30b0e-8b9a-7f72-bb11-6d03765a44bb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC03A:143213:98E68F:DB0E68:6A637FC8
html-safe-noncec0006bc67129b5af400634dcd167aa53f7ba39ea532d2d4350584447a859cf56
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDNBOjE0MzIxMzo5OEU2OEY6REIwRTY4OjZBNjM3RkM4IiwidmlzaXRvcl9pZCI6IjczNjg1MjQ4NjYzNjYxNzcyMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceaa50cc00794bfe1d0c8b2b9ce63d2f86bdc67dcebfefa96d4e312e8fc2f0ef0
hovercard-subject-tagpull_request:4048747219
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/5656/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 Add the sim-side share_file server tool handler: resolves a VFS path to the file, keeps the existing checks (org public-sharing policy, write/admin permission, ShareValidationError, and th...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonee4fb64aef87da454ec25b158147f7f5f14aef29216e5ca1612c2e48faa599d1f
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
releasee839936ba5faffb9c836dda1cf4729d50c88a32e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/5656/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F5656%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%2F5656%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/5656/files
Reloadhttps://github.com/simstudioai/sim/pull/5656/files
Reloadhttps://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/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 121 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
feat/share-file-mothershiphttps://github.com/simstudioai/sim/tree/feat/share-file-mothership
Conversation 25 https://github.com/simstudioai/sim/pull/5656
Commits 1 https://github.com/simstudioai/sim/pull/5656/commits
Checks 19 https://github.com/simstudioai/sim/pull/5656/checks
Files changed https://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
feat(copilot): add share_file tool + surface file share state to the agent https://github.com/simstudioai/sim/pull/5656/files#top
Show all changes 1 commit https://github.com/simstudioai/sim/pull/5656/files
2b09aff feat(copilot): add share_file tool handler and surface file share sta… TheodoreSpeaks Jul 14, 2026 https://github.com/simstudioai/sim/pull/5656/commits/2b09aff51a9a5269d125f854e58584074d247f54
Clear filters https://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
route.ts https://github.com/simstudioai/sim/pull/5656/files#diff-541f227f742d2c6fea1aa126d2c8b5551589d611cb0ae2f56f8dcd98c22ef373
tool-catalog-v1.ts https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
tool-schemas-v1.ts https://github.com/simstudioai/sim/pull/5656/files#diff-d6bbefc705a9a562b6c1fbf9721f8653c610e12436e493f01dbd7a2895ebaa66
share-file.ts https://github.com/simstudioai/sim/pull/5656/files#diff-08c34dad41b4e0e59bff8efcdf439172a93152b24f640d00a831c559d2db642d
router.ts https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
tool-display.ts https://github.com/simstudioai/sim/pull/5656/files#diff-bca6e0849d462b55843584495547b411a8695eb4c2db4606ad8026dec3f806e6
serializers.ts https://github.com/simstudioai/sim/pull/5656/files#diff-7b9325a1d6ce5ccafd1491357e522366315f5c7511047eea4c69fc56ff9c663f
workspace-vfs.ts https://github.com/simstudioai/sim/pull/5656/files#diff-8e6937a8dfe45385ece110f82c25b4371a1ecb90dd552ef0a523e29201ad858b
apps/sim/app/api/workspaces/[id]/files/[fileId]/share/route.tshttps://github.com/simstudioai/sim/pull/5656/files#diff-541f227f742d2c6fea1aa126d2c8b5551589d611cb0ae2f56f8dcd98c22ef373
View file https://github.com/simstudioai/sim/blob/2b09aff51a9a5269d125f854e58584074d247f54/apps/sim/app/api/workspaces/%5Bid%5D/files/%5BfileId%5D/share/route.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5656/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5656/files#diff-541f227f742d2c6fea1aa126d2c8b5551589d611cb0ae2f56f8dcd98c22ef373
https://github.com/simstudioai/sim/pull/5656/files#diff-541f227f742d2c6fea1aa126d2c8b5551589d611cb0ae2f56f8dcd98c22ef373
apps/sim/lib/copilot/generated/tool-catalog-v1.tshttps://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
View file https://github.com/simstudioai/sim/blob/2b09aff51a9a5269d125f854e58584074d247f54/apps/sim/lib/copilot/generated/tool-catalog-v1.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5656/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
https://github.com/simstudioai/sim/pull/5656/files#diff-b3b12f017d88432c4850c81911367dad8977f2cc16cddf567d9c5b12ba31b1b9
apps/sim/lib/copilot/generated/tool-schemas-v1.tshttps://github.com/simstudioai/sim/pull/5656/files#diff-d6bbefc705a9a562b6c1fbf9721f8653c610e12436e493f01dbd7a2895ebaa66
View file https://github.com/simstudioai/sim/blob/2b09aff51a9a5269d125f854e58584074d247f54/apps/sim/lib/copilot/generated/tool-schemas-v1.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5656/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5656/files#diff-d6bbefc705a9a562b6c1fbf9721f8653c610e12436e493f01dbd7a2895ebaa66
https://github.com/simstudioai/sim/pull/5656/files#diff-d6bbefc705a9a562b6c1fbf9721f8653c610e12436e493f01dbd7a2895ebaa66
apps/sim/lib/copilot/tools/server/files/share-file.tshttps://github.com/simstudioai/sim/pull/5656/files#diff-08c34dad41b4e0e59bff8efcdf439172a93152b24f640d00a831c559d2db642d
View file https://github.com/simstudioai/sim/blob/2b09aff51a9a5269d125f854e58584074d247f54/apps/sim/lib/copilot/tools/server/files/share-file.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5656/{{ revealButtonHref }}
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
apps/sim/lib/copilot/tools/server/router.tshttps://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
View file https://github.com/simstudioai/sim/blob/2b09aff51a9a5269d125f854e58584074d247f54/apps/sim/lib/copilot/tools/server/router.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/5656/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
https://github.com/simstudioai/sim/pull/5656/files#diff-ce5afc681051e0e65ece70cc68c705dc5b621d85bfc9e97867984501c58dd369
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/5656/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.