Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ live browser.

## General browser work

- **NEVER ASK FOR CONFIRMATION.** Execute tasks fully without pausing. Do NOT say "If you want, I can continue" or "Should I proceed?" — JUST DO IT. Complete the entire task end-to-end.
- Clarify only when the goal, target URL, or required data is ambiguous.
- Prefer inspecting page state before interacting with elements.
- Use screenshots when visual confirmation would help the user understand the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,8 @@ public static async IAsyncEnumerable<AgentResponseUpdate> LiveViewUrlStreamingMi
_logger.LogDebug("[streaming-middleware] Appending live_view_url");
yield return new AgentResponseUpdate(
ChatRole.Assistant,
[new TextContent($"\n\n🔴 [Browser Live View]({liveViewUrl})")]);
[new TextContent($"\n\n🔴 [Browser Live View]({liveViewUrl})")])
{ FinishReason = ChatFinishReason.Stop };
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Build artifacts
**/bin/
**/obj/

# .NET user secrets
**/.secrets/

# Local settings
**/*.user
**/*.suo

# IDE settings
.vs/
.vscode/
**/.idea/

# Test results
**/TestResults/

# Version control
.git/
.gitignore

# Docker files
.dockerignore

# Docs
README.md

# Local environment (never bake credentials into the image)
.env

# NuGet
.nuget/
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Required
# FOUNDRY_PROJECT_ENDPOINT=https://<account>.services.ai.azure.com/api/projects/<project>
AZURE_AI_MODEL_DEPLOYMENT_NAME=gpt-4.1

# Foundry Toolbox name (hardcoded in agent.manifest.yaml; override only if using a different toolbox)
TOOLBOX_NAME=browser-automation-tools

# Playwright workspace (used in agent.manifest.yaml for connection resource)
# PLAYWRIGHT_SERVICE_URL=wss://<region>.api.playwright.microsoft.com/playwrightworkspaces/<workspace-id>/browsers
# PLAYWRIGHT_SERVICE_RESOURCE_ID=/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.LoadTestService/playwrightWorkspaces/<name>
# PLAYWRIGHT_SERVICE_ACCESS_TOKEN=<playwright-workspace-access-token>

# Optional
# BROWSER_TIMEOUT_SECONDS=180
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS base
WORKDIR /app
EXPOSE 8088
ENV ASPNETCORE_URLS=http://+:8088

# Install Node.js and @playwright/cli
RUN apt-get update && apt-get install -y curl && \
curl -fsSL https://deb.nodesource.com/setup_22.x | bash - && \
apt-get install -y nodejs && \
npm install -g @playwright/cli@latest && \
playwright-cli install --skills && \
apt-get clean && rm -rf /var/lib/apt/lists/*

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore
RUN dotnet publish -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=build /app/publish .
ENTRYPOINT ["dotnet", "browser-automation.dll"]
Loading
Loading