Trim start_session's input schema (4,726 of its 5,134 serialized chars)

Aperta
#205 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
52/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript
Ambito
api, documentation

Direzione di ricerca

No file is named; start by running the server and capturing tools/list to record the current 5,134-character start_session definition as the baseline. Then find where start_session and its parameters are registered in the TypeScript source, and look at the existing wdio://docs/page/{slug} resource to see how provider detail is served today. Done means the description covers only what the tool does and when to use it, per-parameter detail moved into the parameter descriptions, provider detail living in the docs resource, and a re-measured tools/list output in the PR. Keep the shape compatible with the planned v5 target/config/provider input.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Target: feature/v5. The v5 reshape (docs/architecture/v5-proposal.md:223) replaces this input with target/config/provider, so the trim should land with it.

Problem. start_session's definition is 5,134 characters: 28% of the default tool list (18,095 characters across 17 tools, measured on main via tools/list). The description is 246 characters. The rest is the input schema (4,726 characters), mostly .describe() text across the provider and platform fields. Clients without tool search send it with every model request, and so does Claude Code once the tool is loaded. Most of it is per-provider and per-platform detail that a given session never uses.

Proposal.

  • Keep the description to what the tool does and when to use it.
  • Shorten the verbose .describe() strings on the provider and platform fields.
  • Move provider specifics to a docs resource (the wdio://docs/page/{slug} pattern already exists) and point to it from the field description.
  • Consider grouping rare provider fields.

Measure before and after with tools/list.

Acceptance

  • The serialized start_session definition is under 3,000 characters.
  • Tests green.
Lingua principale
TypeScript
Stelle
45
Fork
20
Merge medio
2g 9h
PR unite (30g)
16

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di webdriverio/mcp

Tutte le issue di webdriverio/mcp

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.