Table of Contents

Class AuthorizeToolAttribute

Namespace
Emissary
Assembly
Emissary.dll

Requires a policy for a ClaudeToolAttribute method. Tools whose policy the configured IToolAuthorizer does not grant are filtered out before prompt construction — the model never sees their schemas — and cannot be executed. With no authorizer configured, policy-gated tools are denied by default.

[AttributeUsage(AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
public sealed class AuthorizeToolAttribute : Attribute
Inheritance
AuthorizeToolAttribute
Inherited Members

Constructors

AuthorizeToolAttribute(string)

Requires the given policy.

public AuthorizeToolAttribute(string policy)

Parameters

policy string

The policy name the authorizer must grant.

Properties

Policy

The policy name the authorizer must grant.

public string Policy { get; }

Property Value

string