@@ -139,32 +139,32 @@ When writing [`argsPattern`](./policy-engine.md#arguments-pattern) rules for the
139139each tool. The following table lists the keys that appear in the JSON
140140representation of each tool's arguments.
141141
142- | Tool | JSON argument keys |
143- | :----------------------- | :----------------------------------------------------------------------- |
144- | ` run_shell_command ` | ` command ` , ` description ` , ` dir_path ` , ` is_background ` |
145- | ` glob ` | ` pattern ` , ` path ` , ` case_sensitive ` , ` respect_git_ignore ` |
146- | ` grep_search ` | ` pattern ` , ` path ` , ` include ` |
147- | ` list_directory ` | ` dir_path ` , ` ignore ` , ` file_filtering_options ` |
148- | ` read_file ` | ` file_path ` , ` offset ` , ` limit ` |
149- | ` read_many_files ` | ` include ` , ` exclude ` , ` recursive ` , ` useDefaultExcludes ` |
150- | ` write_file ` | ` file_path ` , ` content ` |
151- | ` replace ` | ` file_path ` , ` old_string ` , ` new_string ` , ` instruction ` , ` allow_multiple ` |
152- | ` ask_user ` | ` questions ` (array of ` question ` , ` header ` , ` type ` , ` options ` ) |
153- | ` write_todos ` | ` todos ` (array of ` description ` , ` status ` ) |
154- | ` save_memory ` | ` fact ` |
155- | ` activate_skill ` | ` name ` |
156- | ` get_internal_docs ` | ` path ` |
157- | ` enter_plan_mode ` | ` reason ` |
158- | ` exit_plan_mode ` | ` plan_path ` |
159- | ` tracker_create_task ` | ` title ` , ` description ` , ` type ` |
160- | ` tracker_update_task ` | ` id ` , ` title ` , ` description ` , ` status ` , ` dependencies ` |
161- | ` tracker_get_task ` | ` id ` |
162- | ` tracker_list_tasks ` | ` status ` , ` type ` , ` parentId ` |
163- | ` tracker_add_dependency ` | ` taskId ` , ` dependencyId ` |
164- | ` tracker_visualize ` | _ (none)_ |
165- | ` update_topic ` | ` title ` , ` summary ` , ` strategic_intent ` |
166- | ` google_web_search ` | ` query ` |
167- | ` web_fetch ` | ` prompt ` |
142+ | Tool | JSON argument keys |
143+ | :----------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
144+ | ` run_shell_command ` | ` command ` , ` description ` , ` dir_path ` , ` is_background ` |
145+ | ` glob ` | ` pattern ` , ` dir_path ` , ` case_sensitive ` , ` respect_git_ignore ` , ` respect_gemini_ignore ` |
146+ | ` grep_search ` | ` pattern ` , ` dir_path ` , ` include_pattern ` , ` exclude_pattern ` , ` names_only ` , ` case_sensitive ` , ` fixed_strings ` , ` context ` , ` after ` , ` before ` , ` no_ignore ` , ` max_matches_per_file ` , ` total_max_matches ` |
147+ | ` list_directory ` | ` dir_path ` , ` ignore ` , ` file_filtering_options ` |
148+ | ` read_file ` | ` file_path ` , ` start_line ` , ` end_line ` |
149+ | ` read_many_files ` | ` include ` , ` exclude ` , ` recursive ` , ` useDefaultExcludes ` |
150+ | ` write_file ` | ` file_path ` , ` content ` |
151+ | ` replace ` | ` file_path ` , ` old_string ` , ` new_string ` , ` instruction ` , ` allow_multiple ` |
152+ | ` ask_user ` | ` questions ` (array of ` question ` , ` header ` , ` type ` , ` options ` ) |
153+ | ` write_todos ` | ` todos ` (array of ` description ` , ` status ` ) |
154+ | ` save_memory ` | ` fact ` |
155+ | ` activate_skill ` | ` name ` |
156+ | ` get_internal_docs ` | ` path ` |
157+ | ` enter_plan_mode ` | ` reason ` |
158+ | ` exit_plan_mode ` | ` plan_path ` |
159+ | ` tracker_create_task ` | ` title ` , ` description ` , ` type ` |
160+ | ` tracker_update_task ` | ` id ` , ` title ` , ` description ` , ` status ` , ` dependencies ` |
161+ | ` tracker_get_task ` | ` id ` |
162+ | ` tracker_list_tasks ` | ` status ` , ` type ` , ` parentId ` |
163+ | ` tracker_add_dependency ` | ` taskId ` , ` dependencyId ` |
164+ | ` tracker_visualize ` | _ (none)_ |
165+ | ` update_topic ` | ` title ` , ` summary ` , ` strategic_intent ` |
166+ | ` google_web_search ` | ` query ` |
167+ | ` web_fetch ` | ` prompt ` |
168168
169169For example, to write a policy rule that blocks any ` write_file ` call targeting
170170a ` .env ` file, you would match against the ` file_path ` key:
0 commit comments