Hosted tools web search
Skill kjuhwa/skills-hub/skills/integration/hosted-tools-web-search
Self-correcting knowledge corpus for Claude Code — 9 stable shape clusters, bias-correction pipeline baked into contribution flow. 47 papers, 45 techniques, 1.1k skills.
npx -y skills add kjuhwa/skills-hub --skill hosted-tools-web-searchAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Add hosted OpenAI tools (WebSearchTool, FileSearchTool, CodeInterpreterTool) to an agent.
SKILL.md
2.3 KB, as published. Nobody here has run it
hosted-tools-web-search
Use WebSearchTool, FileSearchTool, or CodeInterpreterTool from agents package. These run on OpenAI's servers without your Python code handling the execution.
When to apply
When you need real-time web search, vector store retrieval, or sandboxed code execution without building and maintaining tool infrastructure.
Web search
from agents import Agent, Runner, WebSearchTool
agent = Agent(
name="Web searcher",
instructions="You are a helpful agent.",
tools=[WebSearchTool(
user_location={"type": "approximate", "city": "New York"},
search_context_size="medium", # "low" | "medium" | "high"
)],
)
result = await Runner.run(agent, "What's the latest local sports news?")
File search (vector store)
from agents import Agent, FileSearchTool
agent = Agent(
name="Research assistant",
tools=[FileSearchTool(
max_num_results=3,
vector_store_ids=["vs_abc123"],
)],
)
Code interpreter
from agents import Agent, CodeInterpreterTool
agent = Agent(
name="Data analyst",
model="gpt-4o",
instructions="Use the code interpreter to solve numeric problems.",
tools=[CodeInterpreterTool(
tool_config={"type": "code_interpreter", "container": {"type": "auto"}},
)],
)
Key notes
- Hosted tools run server-side; your Python process is NOT called for each tool invocation
on_tool_start/endlifecycle hooks do NOT fire for hosted toolsWebSearchToolsupportsfiltersfor domain inclusion/exclusionFileSearchToolsupportsranking_optionsandinclude_search_resultsCodeInterpreterToolrequires org verification for gpt-5 class models with streaming