@@ -165,12 +165,12 @@ You can define your own command-line tools that the LLM can use. These are confi
165165The ` customTools ` value is an object where each key is the name of your tool. Each tool definition has the following properties:
166166
167167- ` description ` : A clear description of what the tool does. This is crucial for the LLM to decide when to use it.
168- - ` command ` : An array of strings representing the command and its static arguments.
168+ - ` command ` : An string representing the command and its static arguments.
169169- ` schema ` : An object that defines the parameters the LLM can provide.
170170 - ` properties ` : An object where each key is an argument name.
171171 - ` required ` : An array of required argument names.
172172
173- Placeholders in the format ` {{argument_name}} ` within the ` command ` array will be replaced by the values provided by the LLM.
173+ Placeholders in the format ` {{argument_name}} ` within the ` command ` string will be replaced by the values provided by the LLM.
174174
175175=== "Example config.json"
176176
@@ -179,7 +179,7 @@ Placeholders in the format `{{argument_name}}` within the `command` array will b
179179 "customTools": {
180180 "web-search": {
181181 "description": "Fetches the content of a URL and returns it in Markdown format.",
182- "command": [ "trafilatura", " --output-format=markdown", "-u", " {{url}}"] ,
182+ "command": "trafilatura --output-format=markdown -u {{url}}",
183183 "schema": {
184184 "properties": {
185185 "url": {
@@ -192,7 +192,7 @@ Placeholders in the format `{{argument_name}}` within the `command` array will b
192192 },
193193 "file-search": {
194194 "description": "Finds files within a directory that match a specific name pattern.",
195- "command": [ "find", " {{directory}}", " -name", " {{pattern}}"] ,
195+ "command": "find {{directory}} -name {{pattern}}",
196196 "schema": {
197197 "properties": {
198198 "directory": {
@@ -321,7 +321,7 @@ There are 3 possible ways to configure rules following this order of priority:
321321 };
322322 customTools?: {[key: string]: {
323323 description: string;
324- command: string[] ;
324+ command: string;
325325 schema: {
326326 properties: {[key: string]: {
327327 type: string;
0 commit comments