Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

581 B
Raw Blame
import type { ToolAction } from '@mastra/core/tools';

export type ToolReturn = ToolAction<any, any, any, any, any, any>;

export interface AgentToolInterface {
  name: string;
  // needs an MCP host (e.g. renders a ui:// widget), so the in-app agent doesn't get it
  mcpOnly?: boolean;
  // a tool of a feature this install has not configured is left out everywhere
  available?(): boolean;
  // a self-hosted instance without it can still connect through the cloud
  // relay, calling it there asks to update the instance
  optionalOnSelfHosted?: boolean;
  run(): ToolReturn;
}