Command
Send-IntelligenceXMessage
Sends a message to a thread and starts a turn.
Syntax
Send-IntelligenceXMessage
-Text <string>
-ThreadId <string>
[-ApprovalPolicy <string>]
[-Client <IntelligenceXClient>]
[-CurrentDirectory <string>]
[-Model <string>]
[-NetworkAccess]
[-Raw]
[-SandboxType <string>]
[-WritableRoot <string[]>]
[<CommonParameters>]#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?" -RawReturn raw JSON output
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.
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.