Table of Contents

Class ClaudeWebSearch

public class ClaudeWebSearch : ClaudeTool
Inheritance
object
ClaudeWebSearch
Inherited Members

Properties

AllowedDomains

Optional. If provided, only these domains will be included in results. Cannot be used alongside blocked_domains.

public List<string> AllowedDomains { get; set; }

Property Value

List<string>

BlockedDomains

Optional. If provided, these domains will never appear in results. Cannot be used alongside allowed_domains.

public List<string> BlockedDomains { get; set; }

Property Value

List<string>

MaxUses

Optional. Maximum number of times the tool can be used in the API request. Required range: x > 0

public int? MaxUses { get; set; }

Property Value

int?

Name

Required. Name of the tool.

public override string Name { get; }

Property Value

string

Type

Required. The type of the tool. Examples: Tool.Function, Tool.FileSearch, Tool.ComputerUsePreview, Tool.WebSearch

public override ToolType Type { get; }

Property Value

ToolType

UserLocation

Optional. Parameters for the user's location. Used to provide more relevant search results.

public Location UserLocation { get; set; }

Property Value

Location