fix(browser): add profile param to tabs routes and browser-tool
- tabs.ts now uses getProfileContext like other routes - browser-tool threads profile param through all actions - add tests for profile query param on /tabs endpoints - update docs with browser tool profile parameter
This commit is contained in:
committed by
Peter Steinberger
parent
40758b16a9
commit
9b6e2478f5
@@ -182,7 +182,9 @@ export function createBrowserTool(opts?: {
|
||||
const targetUrl = readStringParam(params, "targetUrl", {
|
||||
required: true,
|
||||
});
|
||||
return jsonResult(await browserOpenTab(baseUrl, targetUrl, { profile }));
|
||||
return jsonResult(
|
||||
await browserOpenTab(baseUrl, targetUrl, { profile }),
|
||||
);
|
||||
}
|
||||
case "focus": {
|
||||
const targetId = readStringParam(params, "targetId", {
|
||||
@@ -250,7 +252,11 @@ export function createBrowserTool(opts?: {
|
||||
});
|
||||
const targetId = readStringParam(params, "targetId");
|
||||
return jsonResult(
|
||||
await browserNavigate(baseUrl, { url: targetUrl, targetId, profile }),
|
||||
await browserNavigate(baseUrl, {
|
||||
url: targetUrl,
|
||||
targetId,
|
||||
profile,
|
||||
}),
|
||||
);
|
||||
}
|
||||
case "console": {
|
||||
|
||||
Reference in New Issue
Block a user