Skip to content
Vegha VS Code

Copilot tools

When the extension is installed, GitHub Copilot Chat’s agent mode can use Vegha’s tools directly. Open Chat, switch to Agent, and ask for what you want:

Add a request that creates an order in the orders-api collection, with a test that the status is 201, and run it against staging.

Copilot picks the tools it needs. To point it at one, type # and the tool’s reference name, such as #veghaSend or #veghaRequest. You can also turn tools on or off in the chat’s tools picker.

ToolReferenceWhat it does
List Vegha collections#veghaCollectionsLists the collections in the workspace with their folders and requests.
Search Vegha requests#veghaSearchFinds requests by name, URL or method across all collections.
Get a Vegha request#veghaRequestReturns a request as JSON: method, URL, params, headers, body, auth, scripts and more.
List Vegha environments#veghaEnvironmentsLists a collection’s environments, which one is active, and their variables (secrets redacted).
ToolReferenceWhat it does
Create a Vegha request#veghaCreateRequestCreates a new .bru request in a collection folder.
Update a Vegha request#veghaUpdateRequestChanges only the fields it’s given (a JSON merge patch over the request).
Set request scripts#veghaSetScriptsSets pre-request, post-response and test JavaScript.
Set request assertions#veghaSetAssertionsSets scriptless assertions such as res.status eq 200.
Set response captures#veghaSetCapturesCaptures response values into runtime, environment or workspace variables.
Set linked requests#veghaSetChainSets the requests that run first, such as a login, and when they run.
Create a Vegha folder#veghaCreateFolderCreates a folder to group requests.
Import a cURL command#veghaImportCurlCreates a request from a cURL command.
Delete a Vegha request#veghaDeleteRequestDeletes a request file. You’re always asked to confirm.
ToolReferenceWhat it does
Activate a Vegha environment#veghaUseEnvironmentChooses the environment {{variables}} resolve from.
Set a variable#veghaSetVariableSets a variable for this session only. Nothing is written to disk.
Send a Vegha request#veghaSendSends a request exactly as Send does and returns status, timing, test results, variables set, headers and the start of the body.
Run a Vegha folder or collection#veghaRunRuns every request in order, carrying variables, and returns a pass/fail summary.
ToolReferenceWhat it does
Get a request’s last response#veghaLastResponseReturns the last response from this session, or one value from it such as res.body.items[0].id.
Generate code for a request#veghaCodeGenerates a code snippet for the request, including inherited headers and auth.
Vegha request history#veghaHistoryLists recent sends from the shared history.
Vegha scripting reference#veghaScriptReferenceReturns the scripting and assertion reference, so the model writes valid tests.

Changes to a request show their .bru diff for approval and are applied as undoable edits. Sends show the target URL first. See Overview & safety.