Skip to content

Commit 0c90706

Browse files
authored
docs(protocol): define additionalDirectories validation (#2604)
1 parent 85a4551 commit 0c90706

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎docs/protocol/v2/draft/session-setup.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ When present, `additionalDirectories` has the following behavior:
439439

440440
Clients **MUST** only send `additionalDirectories` when the Agent advertises `session.additionalDirectories`.
441441

442+
Agents that advertise the capability **MUST** reject a request with `-32602` if any entry is not an absolute path, and **MAY** reject entries that don't exist or aren't directories. Agents **MAY** ignore duplicate entries and entries equal to `cwd`, so the list reported in [`SessionInfo`](/protocol/v2/draft/session-list) can differ from the request. Agents that don't advertise the capability ignore the field.
443+
442444
## System Prompt (unstable)
443445

444446
Agents that advertise `session.systemPrompt` allow Clients to include

‎docs/protocol/v2/session-setup.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,8 @@ When present, `additionalDirectories` has the following behavior:
433433

434434
Clients **MUST** only send `additionalDirectories` when the Agent advertises `session.additionalDirectories`.
435435

436+
Agents that advertise the capability **MUST** reject a request with `-32602` if any entry is not an absolute path, and **MAY** reject entries that don't exist or aren't directories. Agents **MAY** ignore duplicate entries and entries equal to `cwd`, so the list reported in [`SessionInfo`](/protocol/v2/session-list) can differ from the request. Agents that don't advertise the capability ignore the field.
437+
436438
## Session ID
437439

438440
The session ID returned by `session/new` is a unique identifier for the conversation context.

0 commit comments

Comments
 (0)