Skip to content

chore: add function to sanitize params for tool calls#1250

Merged
yulunz merged 1 commit intomainfrom
chore/filter-sensitive-args
Mar 31, 2026
Merged

chore: add function to sanitize params for tool calls#1250
yulunz merged 1 commit intomainfrom
chore/filter-sensitive-args

Conversation

@yulunz
Copy link
Copy Markdown
Collaborator

@yulunz yulunz commented Mar 27, 2026

This adds functions to sanitize the tool call parameters. They are not called as of now since we don't have server side changes landed yet to support these.

@nattallius
Copy link
Copy Markdown
Collaborator

@yulunz can you resolve all format checks?

@yulunz yulunz force-pushed the chore/filter-sensitive-args branch 3 times, most recently from 5ec0844 to cc1e822 Compare March 27, 2026 23:49
@yulunz
Copy link
Copy Markdown
Collaborator Author

yulunz commented Mar 28, 2026

@yulunz can you resolve all format checks?

hi, of course, should have marked this as a draft. I was thinking like in the CL world :)

@yulunz yulunz requested a review from OrKoN March 28, 2026 01:00
Copy link
Copy Markdown
Collaborator

@OrKoN OrKoN left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks!

@yulunz yulunz added this pull request to the merge queue Mar 31, 2026
Merged via the queue into main with commit 44e511f Mar 31, 2026
20 checks passed
@yulunz yulunz deleted the chore/filter-sensitive-args branch March 31, 2026 18:22
OrKoN pushed a commit to mvanhorn/chrome-devtools-mcp that referenced this pull request Apr 1, 2026
…#1250)

This adds functions to sanitize the tool call parameters. They are not
called as of now since we don't have server side changes landed yet to
support these.
github-merge-queue Bot pushed a commit that referenced this pull request Apr 1, 2026
…#1257)

This adds a script that generates a json file that summarizes all tool
calls and arguments for each.

- The arguments run through the blocklist filtering so arguments
containing high entropy ids are filtered out (e.g. "uid", "msgid" etc).
- It uses existing functions from clearcut logger module to transform
the arg name and value (i.e. take the length of the string, take the
size of the array, and rename the string to be "string_length", and
array "array_count" etc).
- These functions from the clearcut logger module will be later used to
sanitize the params as we start to log them.

This doesn't include the append only / deprecation logic just yet (i.e.
it's doesn't handle the case when new tools are added / removed, or
arguments of the existing tools are modified). This will be added in
following PRs.

The parent PR is #1250.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants