Cmdlet
Send-IntelligenceXMessage
Sends a message to a thread and starts a turn.
Examples
Example 1
Send-IntelligenceXMessage -ThreadId $thread.id -Text "Review this diff."
Send a message in an existing thread
Example 2
Send-IntelligenceXMessage -ThreadId $thread.id -Text "Summarize changes." -Model "gpt-5.3-codex"
Send a message with a temporary model override
Example 3
Send-IntelligenceXMessage -ThreadId $thread.id -Text "Run tests" -SandboxType "workspace" -NetworkAccess -WritableRoot "C:\repo"
Send a message with a workspace sandbox
Example 4
Send-IntelligenceXMessage -ThreadId $thread.id -Text "Status?" -Raw
Return raw JSON output
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Send-IntelligenceXMessage -Text <string> -ThreadId <string> [-ApprovalPolicy <string>] [-Client <IntelligenceXClient>] [-CurrentDirectory <string>] [-Model <string>] [-NetworkAccess] [-Raw] [-SandboxType <string>] [-WritableRoot <string[]>] [<CommonParameters>]#Parameters
- Text string
- Message text to send.
- ThreadId string
- Thread identifier to send the message to.
- ApprovalPolicy string
- Approval policy name to use.
- Client IntelligenceXClient
- Client instance to use. Defaults to the active client.
- CurrentDirectory string
- Working directory to pass to the app-server.
- Model string
- Optional model override.
- NetworkAccess SwitchParameter
- Enable network access for sandboxed runs.
- Raw SwitchParameter
- Return raw JSON response.
- SandboxType string
- Sandbox type (for example 'workspace' or 'danger-full-access').
- WritableRoot string[]
- Writable root paths for sandboxed runs.
Outputs
IntelligenceX.Json.JsonValue, IntelligenceX.OpenAI.AppServer.Models.TurnInfo