# Function selectModel

MCP exports - MCP server implementation Split from index.ts for file size compliance (Issue #285) Updated Issue #538: Added missing tool registration exports

- selectModel(
  input: {
  task: string;
  preferred_capability?: "code" | "context" | "reasoning" | "speed";
  model_hint?: string;
  billing_mode?: "plan" | "api";
  },
  requirements: TaskRequirements,
  billingMode?: BillingMode,
  ): SelectionResult

  Selects the optimal model for a task.

  #### Parameters

  - input: {
    task: string;
    preferred_capability?: "code" | "context" | "reasoning" | "speed";
    model_hint?: string;
    billing_mode?: "plan" | "api";
    }
  - requirements: TaskRequirements
  - billingMode: BillingMode = 'api'

  #### Returns SelectionResult

  - Defined in packages/nexus-agents/src/mcp/tools/delegate-to-model-helpers.ts:344