push_error_message
Display an error message on the frontend when validation or API calls fail. Provide the message text and optional display duration to alert users immediately.
Instructions
推送前台错误消息。
适用场景: - 在参数校验或接口调用失败时向前台反馈错误。
注意事项: - msg 必须是非空字符串。 - timeout 必须是正整数毫秒值。
Args: msg: 错误消息内容。 timeout: 消息显示时长(毫秒),默认 7000。
Returns: Dict[str, Any]: 包含消息 id 的字典。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| msg | Yes | ||
| timeout | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |