Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anomalyco/opencode
/ webfetch.ts
File
webfetch.ts
packages/core/src/tool/webfetch.ts:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
export
* as WebFetchTool from
"./webfetch"
2
3
import
{ ToolFailure } from
"@opencode-ai/llm"
4
import
{ Duration, Effect, Layer, Schema } from
"effect"
Callers
nothing calls this directly
Calls
8
assertHttpUrl
Function · 0.85
mimeFrom
Function · 0.85
isTextualMime
Function · 0.85
collectBody
Function · 0.85
execute
Function · 0.70
isImageAttachment
Function · 0.70
convert
Function · 0.70
make
Method · 0.45
Tested by
no test coverage detected