04 · Web Research
Sometimes the question is not “what’s in this repo” but “what does
the upstream docs page say today”. This case sends DSCC out to the web,
asks it to read the Anthropic Messages API reference, and collapse the
content into three tables. Permission stays read-only — the
agent can fetch and summarise, but not modify files.
Capability demonstrated
WebSearchto locate the canonical page.WebFetchto pull and parse it.StructuredOutput(or plain markdown tables) to return a consistent shape.ReadOnlypermission mode — no local writes.
Setup
None. Any workspace works, the agent does not touch the filesystem.
Make sure your environment has outbound HTTPS and that no hook blocks
WebFetch (see guides/hooks.md).
Run command
dscc --model claude-sonnet-4-6 \
--permission-mode read-only \
prompt "$(cat docs/cookbook/04-web-research/PROMPT.md)"
A live run against doubao-seed-2.0-code is captured at
report_dscc.md / dscc_run.log.
Expected behavior
The model should typically:
- Call
WebSearchwith a query likeanthropic messages api reference. - Call
WebFetchon the top hit (the docs page). - Possibly a second
WebFetchfor a linked subpage (streaming events, errors). - Return three markdown tables plus a source URL line.
No edit_file / write_file /
bash calls.
Verification
- Output contains three tables: request body, streaming events, rate-limit headers.
- The request body table includes
model,messages,max_tokens. - The streaming table includes at least one SSE event such as
message_start,content_block_delta, ormessage_stop. - A source URL appears at the top.