Skip to content

Commit 8c5d8b4

Browse files
committed
feat: change search-docs tool to request markdown formatting
1 parent 2a21c13 commit 8c5d8b4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Mcp/Tools/SearchDocs.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class SearchDocs extends Tool
1616
{
1717
use MakesHttpRequests;
1818

19-
public function __construct(protected Roster $roster)
20-
{
21-
}
19+
public function __construct(protected Roster $roster) {}
2220

2321
public function description(): string
2422
{
@@ -88,6 +86,7 @@ public function handle(array $arguments): ToolResult|Generator
8886
'queries' => $queries,
8987
'packages' => $packages,
9088
'token_limit' => $tokenLimit,
89+
'format' => 'markdown',
9190
];
9291
try {
9392
$response = $this->client()->asJson()->post($apiUrl, $payload);

0 commit comments

Comments
 (0)