Title: [SEP-2356] File input support for tools and elicitation by ochafik · Pull Request #2217 · modelcontextprotocol/python-sdk · GitHub
Open Graph Title: [SEP-2356] File input support for tools and elicitation by ochafik · Pull Request #2217 · modelcontextprotocol/python-sdk
X Title: [SEP-2356] File input support for tools and elicitation by ochafik · Pull Request #2217 · modelcontextprotocol/python-sdk
Description: Summary Prototype implementation of the file input SEP for the Python SDK. Adds Pydantic models for declarative file inputs on tools and elicitation forms, gated by a new fileInputs client capability. SEP: modelcontextprotocol/modelcontextprotocol#2356 NoteThis is a draft prototype tracking the spec proposal. It will be updated as the SEP evolves and should not be merged until the spec PR lands. Changes FileInputsCapability — empty capability class (matches FormElicitationCapability pattern); wired into ClientCapabilities.file_inputs FileInputDescriptor — accept: list[str] | None, max_size: int | None Tool.input_files: dict[str, FileInputDescriptor] | None ElicitRequestFormParams.requested_files: dict[str, FileInputDescriptor] | None Exports for new types and test coverage StringArraySchema is intentionally omitted — the Python SDK models ElicitRequestedSchema as dict[str, Any] and does not enumerate primitive schema variants.
Open Graph Description: Summary Prototype implementation of the file input SEP for the Python SDK. Adds Pydantic models for declarative file inputs on tools and elicitation forms, gated by a new fileInputs client capabili...
X Description: Summary Prototype implementation of the file input SEP for the Python SDK. Adds Pydantic models for declarative file inputs on tools and elicitation forms, gated by a new fileInputs client capabili...
Opengraph URL: https://github.com/modelcontextprotocol/python-sdk/pull/2217
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:27f9271d-d118-8644-d109-11de41bd57fe |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E096:125654:645BFF:86C0B6:6A598582 |
| html-safe-nonce | 415839a00787f05129e243a04fde598742a113709288de78c3b930ada0af2e62 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDk2OjEyNTY1NDo2NDVCRkY6ODZDMEI2OjZBNTk4NTgyIiwidmlzaXRvcl9pZCI6IjI0MDkzOTQ0NjYzNDYwNzU1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 2af6eb99d86280034ca17d5aa3c89777b1851f4c273226930897100d86ca5f76 |
| hovercard-subject-tag | pull_request:3360010995 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/modelcontextprotocol/python-sdk/pull/2217/files |
| twitter:image | https://avatars.githubusercontent.com/u/273860?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/273860?s=400&v=4 |
| og:image:alt | Summary Prototype implementation of the file input SEP for the Python SDK. Adds Pydantic models for declarative file inputs on tools and elicitation forms, gated by a new fileInputs client capabili... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | a540949572872b935b393b36db38922db390ae71c859537d741b8f3eb7e545b5 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/modelcontextprotocol/python-sdk git https://github.com/modelcontextprotocol/python-sdk.git |
| octolytics-dimension-user_id | 182288589 |
| octolytics-dimension-user_login | modelcontextprotocol |
| octolytics-dimension-repository_id | 862584018 |
| octolytics-dimension-repository_nwo | modelcontextprotocol/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 862584018 |
| octolytics-dimension-repository_network_root_nwo | modelcontextprotocol/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 624bb50a7497aa346bef8cc3743af408a9ea10ca |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width