F+Foldkit Plus
HomeLearnPackagesComponentsPrimitivesDemosBlogGitHub ↗

Agent

Guides

foldkit-agent

  • Overview
  • Configure capabilities, authorization, and completion
  • Name UI controls with Parts
  • How dispatch executes and fails
  • Record decisions with the audit log

foldkit-agent-mcp

  • Overview
  • How the contract maps to MCP
  • Distinguish protocol errors from application refusals
  • Serve multiple callers over Streamable HTTP
  • HTTP identity, sessions, and origin security
  • Diagnostics

foldkit-agent-webmcp

  • Overview
  • Keep tools synchronized with the Model
  • Expose HTML forms as declarative tools
  • Manage registration lifecycle and options

foldkit-agent-a2a

  • Overview
  • Task states and completion outcomes

foldkit-agent-native

  • Overview

Expose, do not reimplement

  • Overview
  • Four values from application to live runtime
  • A first end-to-end agent
  • What an agent can read: context and resources
  • Waiting for Commands and state changes to finish
  • Availability, authorization, and applies
  • Linking capabilities to UI controls with parts
  • Serving one contract across four protocols
  • Dynamic capabilities and audit logging

Tools from a state machine's transitions

  • Overview
  • Write the rules as a metakit machine
  • Turn each transition into a tool
  • What the assistant is shown
  • When a tool is hidden, and when a call is refused
  • Send a different Message, or limit who may call

API

foldkit-agent

  • foldkit-agent
  • foldkit-agent/metakit

foldkit-agent-mcp

  • foldkit-agent-mcp

foldkit-agent-webmcp

  • foldkit-agent-webmcp

foldkit-agent-a2a

  • foldkit-agent-a2a

foldkit-agent-native

  • foldkit-agent-native

Open source, MIT
Foldkit 0.170 · Effect 4

Agent / foldkit-agent-webmcp

ToolExecutionContext

interface · packages/agent-webmcp/src/webmcp.ts:10

interface ToolExecutionContext {
  readonly signal?: AbortSignal | undefined
}

Metadata passed to a tool's execute function.

Members

ToolExecutionContext.signal#

property · packages/agent-webmcp/src/webmcp.ts:12

readonly signal?: AbortSignal | undefined

Cancellation for this invocation: is this call still wanted?

Previousfoldkit-agent-webmcp

On this page

  • signal

Edit on GitHub ↗

This site is a Foldkit Plus application, rendered at build time with foldkit-ssr. Its source

FoldkitEffectGitHub

Menu

HomeLearnPackagesComponentsPrimitivesDemosBlogGitHub ↗

Agent

Guides

foldkit-agent
  • Overview
  • Configure capabilities, authorization, and completion
  • Name UI controls with Parts
  • How dispatch executes and fails
  • Record decisions with the audit log
foldkit-agent-mcp
  • Overview
  • How the contract maps to MCP
  • Distinguish protocol errors from application refusals
  • Serve multiple callers over Streamable HTTP
  • HTTP identity, sessions, and origin security
  • Diagnostics
foldkit-agent-webmcp
  • Overview
  • Keep tools synchronized with the Model
  • Expose HTML forms as declarative tools
  • Manage registration lifecycle and options
foldkit-agent-a2a
  • Overview
  • Task states and completion outcomes
foldkit-agent-native
  • Overview
Expose, do not reimplement
  • Overview
  • Four values from application to live runtime
  • A first end-to-end agent
  • What an agent can read: context and resources
  • Waiting for Commands and state changes to finish
  • Availability, authorization, and applies
  • Linking capabilities to UI controls with parts
  • Serving one contract across four protocols
  • Dynamic capabilities and audit logging
Tools from a state machine's transitions
  • Overview
  • Write the rules as a metakit machine
  • Turn each transition into a tool
  • What the assistant is shown
  • When a tool is hidden, and when a call is refused
  • Send a different Message, or limit who may call

API

foldkit-agent
  • foldkit-agent
  • foldkit-agent/metakit
foldkit-agent-mcp
  • foldkit-agent-mcp
foldkit-agent-webmcp
  • foldkit-agent-webmcp
foldkit-agent-a2a
  • foldkit-agent-a2a
foldkit-agent-native
  • foldkit-agent-native

Open source, MIT
Foldkit 0.170 · Effect 4